DOMtempl

HTML templating that brings you peace

Documentation - JS debuger

About

JS debuger allows you to update DOMtempl templates directly from the UA.

It spawns a TEXTAREA element, with all the vars dumped there in JSON format.

Two buttons (for reading and writing) are also added alongside.

Package

Currently, JS debuger is packaged into javascript version of DOMtempl.

If it ever grows in size, it might be moved into a separate package.

Init

Manual

Invoke the initEditor function on the DOMtempl instance.

function onDOMready() {
    var templ = new DOMtempl();
    templ.initEditor();
}
 

Automatic

Add the "domtempl" class attribute to the root element of your document.

<html class="domtempl">
...
</html>
 

Conflicts

As of now, only one debuger per document is supported.