nghtml

Component plugin for Angular.js Templates

npm install nghtml
3 downloads in the last day
32 downloads in the last week
113 downloads in the last month

nghtml

Component plugin for Angular.js Templates

Usage

var nghtml = require("nghtml");

builder.use(nghtml({
  webroot: "public",
  module: "app",
  dev: true,
  hook: function(contents, done) {
    return processedContents;
  }
}));

Options

extenstion

Extension to look for. Defaults to .nghtml

webroot

Path relative to the project root where the files are being served, for example public. This defaults to nothing.

module

The module in which to cache the templates. Defaults to templates.

dev

Boolean value to specify dev mode. This enables next-lines on the cached tempaltes. Defaults to false

hook

Function to process the html output

npm loves you