Skip to content

pgchamberlin/chintz-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chintz-node

Chintz client for Node.js

NPM

Usage

This assumes you have a Chintz library of front end elements (mustache templates, css, js, etc. with a dependency manifest per-component).

Initialise:

var Chintz = require("chintz-node");
var chintz = new Chintz("/absolute/path/to/chintz/library");

Prepare elements:

chintz->prepare('element-name');

Render content:

chintz->render('element-name', { data: 'value' }, function(s) { sys.log('rendered content: ' + s); });

Resolve dependencies:

chintz->getDependencies('dependency_key', function(d) { sys.log('dependencies: ' + d); });

About

Chintz client for Node.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published