Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mmouterde/tomplate

String to DOM with function bindings
https://github.com/mmouterde/tomplate

Last synced: about 1 month ago
JSON representation

String to DOM with function bindings

Awesome Lists containing this project

README

        

# TomPlate

A extra-light template tool that allows function bindings :

~~~javascript
(function(){
var HTMLString = "link";
var handlers = {
HelloScopedFn: function(){
console.log("hello!");
}
};
var element = tomplate(HTMLString,handlers);
})();
~~~