nghtml

Component plugin for Angular.js Templates

nghtml

Component plugin for Angular.js Templates

var nghtml = require("nghtml");
 
builder.use(nghtml({
  webroot: "public",
  module: "app",
  dev: true,
  hookfunction(contentsdone) {
    return processedContents;
  }
}));
 

Extension to look for. Defaults to .nghtml

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

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

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

Function to process the html output