link
interessante librerie javascript che consente attuare facilmente replace,append e prenpend al dom
Example
Consider the following HTML template snippet:
<ul> <li></li></ul>
and the following Javascript:
$m({ ul: ["foo", "bar", "baz"]});
will result in the following transformed HTML:
<ul> <li>foo</li> <li>bar</li> <li>baz</li></ul>