inline-templates

Inline script templates for layout

npm install inline-templates
8 downloads in the last week
16 downloads in the last month

inline-templates adds a helper function called templates for your layout file.

templates([options={type: 'text/x-template', template_path:
'./templates/'}]);

Example

app.js

  require('inline-templates');

layout.jade

  !=templates({type:'text/x-serenade'});

Install it via npm:

npm install inline-templates
npm loves you