0.1.23 • Published 8 years ago

node-squarespace-jsont v0.1.23

Weekly downloads
3
License
-
Repository
github
Last release
8 years ago

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 = require( "node-squarespace-jsont" );

// template = string html, data = page json object
sqsJsonTemplate.render( template, data );

Given some json data

{
    "collection" : {
        "title" : "Page Title",
        "description" : "This is the page description."
    }
}

And an html template with json-t

{.section collection}
    <h1>{title}</h1>
    <p>{description}</p>
{.end}

You get the following on render

<h1>Page Title</h1>
<p>This is the page description.</p>

Resources

These links should help the dive into json-template.

Pull Requests

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request
0.1.23

8 years ago

0.1.22

8 years ago

0.1.21

8 years ago

0.1.20

8 years ago

0.1.19

9 years ago

0.1.18

9 years ago

0.1.17

9 years ago

0.1.16

9 years ago

0.1.15

9 years ago

0.1.14

9 years ago

0.1.13

9 years ago

0.1.12

9 years ago

0.1.11

9 years ago

0.1.10

9 years ago

0.1.9

9 years ago

0.1.8

9 years ago

0.1.7

9 years ago

0.1.6

9 years ago

0.1.5

9 years ago

0.1.4

9 years ago

0.1.3

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago