0.5.5 • Published 9 years ago

deep-swig v0.5.5

Weekly downloads
5
License
-
Repository
github
Last release
9 years ago

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();
0.5.5

9 years ago

0.5.4

9 years ago

0.5.3

10 years ago

0.5.2

10 years ago

0.5.1

10 years ago

0.5.0

10 years ago

0.4.1

10 years ago

0.4.0

10 years ago

0.3.4

10 years ago

0.3.2

10 years ago

0.3.1

10 years ago

0.3.0

10 years ago