Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

jstx

yuanyan15ISC0.1.2

Compile templates to JST file.

readme

jstx

Compile templates to a JST file.

Settings

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

License

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