npm

Bring the best of OSS JavaScript development to your projects with npm Orgs - private packages & team management tools.Learn more »

deep-swig

0.5.5 • Public • Published

deep-swig

deep-swig provides deepjs styled client for swigjs (template engine) http://paularmstrong.github.io/swig/

Install

npm install deep-swig

or

bower install deep-swig

Usage

// example through deepLoad

require("deep-swig")();
require("deep-node/lib/rest/file/json")();
 
var obj = {
    template:"swig::./path/to/my/swig/template",
    context:{
        myData:"json::./path/to/datas.json",
        myTitle:"Hello world"
    }
};
 
deep.nodes(obj)
.deepLoad()
.done(function(obj){
    return obj.template(obj.context);
})
.log();

install

npm i deep-swig

Downloadsweekly downloads

2

version

0.5.5

license

none

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
Report a vulnerability