There is now an Editor so you can play with HDElk online. This was built with three additional technologies - CodeMirror for editing, PermissiveJSON to allow very loose JSON to be entered and FileSaver.js to assist with getting the various artifacts saved.
Code Mirror
Great in-browser syntax highlighting editor
ToloFramework Permissive JSON Parser
This NodeJS module takes pretty loose JSON and parses it as if it were typed correctly.
From the Repo
Permissive JSON:
{ul // This comment will be ignored. class: [bright shadowed] [ {li ["Happy birthday!"]} {li ["Mister president."]} ] }
The same object in strict JSON:
{ "0": "ul", "class": ["bright", "shadowed"], "1": [ { "0": "li", "1": ["Happy birthday!"] }, { "0": "li", "1": ["Mister president."] } ] }
It lets you get away with murder.
Without PermissiveJSON, we’d need to be a lot more correct in the editor. Or we’d need to do Javascript.eval( )
’s
The code was adapted for use in the browser.
FileSaver.js
Functions for saving small files from the browser