tomplate
v0.0.3
Published
String to DOM with function bindings
Downloads
8
Maintainers
Readme
TomPlate
A extra-light template tool that allows function bindings :
(function(){
var HTMLString = "<a href='#' onclick='{HelloScopedFn()}' ondblclick='globalFn()'>link</a>";
var handlers = {
HelloScopedFn: function(){
console.log("hello!");
}
};
var element = tomplate(HTMLString,handlers);
})();