node-squarespace-jsont
The JSONT template rendering engine for Squarespace in node.js.
Installation
npm install node-squarespace-jsont
Updating
npm update node-squarespace-jsont
Usage
var sqsJsonTemplate = ; // template = string html, data = page json objectsqsJsonTemplate;
Given some json data
And an html template with json-t
{.section collection} {title} {description}{.end}
You get the following on render
Page TitleThis is the page description.
Resources
These links should help the dive into json-template.
Pull Requests
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request