Hi,
Does anybody know if there is a tool around that can convert html to javascript.
For example:
<div>
</div>
would convert to
aDiv = document.createElement('div');
document.appendChild(aDiv);
etc
I'm am doing a few html templates for UI components and am using MooShell for prototyping. It would be great to be able to auto-generate the javascript that will build the component's html.
Thanks