Skip to content

sailjs/render-mustache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sail / Render-Mustache

This module provides an engine for rendering Mustache templates in Sail.js applications. Internally, mustache.js is used to render templates.

Install

component
$ component install sailjs/render-mustache
volo
$ volo add sailjs/render-mustache

Usage

Register engine with render to process Mustache templates:

render.engine('text/x-mustache-template', mustache());

Compatibility

component

This module uses the AMD format. To include in component builds, use component-amd:

component build -u component-amd

Tests

To run tests in a browser, execute the Make target for the desired browser:

$ make test-chrome
$ make test-firefox
$ make test-safari

Headless tests can be executed directly from a terminal:

$ make test-phantomjs

Credits

License

The MIT License

Copyright (c) 2013 Jared Hanson <http://jaredhanson.net/>

About

Rendering engine for Mustache templates.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published