New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

kissy-xtemplate

Package Overview
Dependencies
Maintainers
3
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kissy-xtemplate

XTemplate compiler for KISSY

  • 0.4.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7
decreased by-41.67%
Maintainers
3
Weekly downloads
 
Created
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

Package last updated on 08 May 2015

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc