Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

task-jst

0.1.5 • Public • Published

task-jst

Compile templates to a JST file.

The "jst" task

Usage Examples

var jst = new (require('task-jst'))
jst.run(inputs, options, logger)

Options

options.settings

Type: object

By default, uses ERB-style template delimiters, change the following template settings to use alternative delimiters.

{
    evaluate    : /<%([\s\S]+?)%>/g,
    interpolate : /<%=([\s\S]+?)%>/g,
    escape      : /<%-([\s\S]+?)%>/g,
    include      : /<%@([\s\S]+?)%>/g
}

options.namespace

Type: string

options.wrapper

Type: select Options: ["amd", "kmd"]

Release History

  • 2015-01-06 0.1.0 Initial release.

License

Copyright (c) 2015 Yuanyan Cao. Licensed under the MIT license.

Keywords

install

npm i task-jst

Downloadsweekly downloads

6

version

0.1.5

license

none

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar