Mini template engine.
This is a small easy template engine. It just replaces variable placeholders with objects passed to the function.
Install
npm install --save mini-template-engine
Syntax
var template = ;;
Usage
var template = ; var html = ; console; // Template should now contain this html string:// '<div class="wrapper">So this is some not so useful content</div>' // Async approachvar async = ; // Output: <span>loaded async</span> // You can also use the "template" for other stuff than html alsovar otherStuff = ; console; // Output:// 'I want to add a word dynamic: JavaScript' var nested = ; console; // Template should now contain this html string:// '<div class="wrapper">So this is some not so useful content</div>'