- 授权协议: AGPL
- 开发语言: JavaScript
- 操作系统: 跨平台
- 软件首页: https://smcmurray.github.io/kata/
软件介绍
Kata 是一个 JavaScript 模板引擎。包括:Template blocks, Interpolate blocks, Iterate blocks, Conditional blocks, Else/Elseif blocks, Invoke blocks, Yield blocks, Import blocks, Evaluate blocks, and Plugin blocks.
示例代码:
var kata = require('kata'); var fs = require('fs'); fs.readFile('template.kata', {encoding: 'utf8'}, function(err, src){ var template; if (err) return; template = kata(src); console.log(template({greeting: 'Hello', name: 'World'})); });