Neolithic Prancing Minotaurs

    micro-templating

    0.0.1 • Public • Published

    micro-templating

    Build Status

    Respecting micro-templating

    why

    • Want to use micro-templating on memory
    • Want to find tmpl string by NOT document.getElementById(tpl_name) BUT pool[tpl_name]

    spec

    // you can generate this pool by using `gulp-micro-templating`
    this.MicroTemplates = {"foo":"<a href=\"<%= url %>\"><%= name %></a>"};
     
    var tmpl = require('micro-templating').tmpl;
     
    var html = tmpl("foo", {url:"https://npmjs.org/~otiai10", name:"otiai10"});
    // == <a href="https://npmjs.org/~otiai10">otiai10</a>

    Keywords

    none

    Install

    npm i micro-templating

    DownloadsWeekly Downloads

    3

    Version

    0.0.1

    License

    none

    Last publish

    Collaborators

    • otiai10