nghtml
Component plugin for Angular.js Templates
Last updated 7 years ago by camshaft .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install nghtml 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.2.1                                ...           latest (6 years ago)

7 Versions

  • 0.2.1                                ...           6 years ago
  • 0.2.0                                ...           7 years ago
  • 0.1.4                                ...           7 years ago
  • 0.1.3                                ...           7 years ago
  • 0.1.2                                ...           7 years ago
  • 0.1.1                                ...           7 years ago
  • 0.1.0                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 5
Dependencies (0)
None
Dev Dependencies (0)
None

Copyright 2014 - 2016 © taobao.org |