Socket
Socket
Sign inDemoInstall

kissy-xtemplate

Package Overview
Dependencies
27
Maintainers
3
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    kissy-xtemplate

XTemplate compiler for KISSY


Version published
Weekly downloads
2
decreased by-50%
Maintainers
3
Install size
7.78 MB
Created
Weekly downloads
 

Readme

Source

kissy-xtemplate

Build Status

Independent XTemplate compiler for KISSY

Usage

NodeJS

var XTemplate = require('kissy-xtemplate');
new XTemplate().compileSync('xxx.xtpl.html', 'xxx.xtpl.js');

or use the async version:

var XTemplate = require('kissy-xtemplate');
new XTemplate().compile('xxx.xtpl.html', 'xxx.xtpl.js');

shell

to use shell version, you'd better install it using -g

npm install kissy-xtemplate -g

then, you can compile using xtemplate bin.

xtemplate a.xtpl.html a.js
xtemplate src/ dest/

for more information, please refer to help.

xtemplate -h

Options

var XTemplate = require('kissy-xtemplate');
var compiler = new XTemplate({
    version: '1.5.0', // config your KISSY version
    inputCharset: 'gbk', // your tpl src charset
    outputCharset: 'gbk', // compiled charset
    type: 'xtpl', // template type. default is XTemplate
});
compiler.compile('xxx.xtpl.html', 'xxx.xtpl.js');

Current Supported Versions

  • 1.4.0
  • 1.4.1
  • 1.4.2
  • 1.5.0
  • 5.0.0-alpha.1
  • 5.0.0-alpha.2
  • 5.0.0-alpha.10
  • kg-4.1.4
  • kg-4.2.0
  • kg-4.2.1
    • static constraint when parameter is a static value

Keywords

FAQs

Last updated on 08 May 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc