0.0.1 • Published 10 years ago

jasper v0.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
10 years ago

jasper NPM version Build Status Dependency Status

Jasper is an elegant template engine.

Install

index.jasp

html
  body
    facade abc

Usage

var jasper = require('jasper');
jasper.register('facade', function(name){
  return '<script>facade({mod: "' + name + '"});</script>';
});

jasper.compile(fs.readFileSync('index.jasper'));
<html>
  <body>
    <script>facade({mod: "abc"})</script>
  </body>
</html>

Licence

MIT