Kata 正在参加 2021 年度 OSC 中国开源项目评选,请投票支持!
Kata 在 2021 年度 OSC 中国开源项目评选 中已获得 {{ projectVoteCount }} 票,请投票支持!
2021 年度 OSC 中国开源项目评选 正在火热进行中,快来投票支持你喜欢的开源项目!
2021 年度 OSC 中国开源项目评选 >>> 中场回顾
Kata 获得 2021 年度 OSC 中国开源项目评选「最佳人气项目」 !
授权协议 AGPL
开发语言 JavaScript
操作系统 跨平台
软件类型 开源软件
所属分类 程序开发模板引擎
开源组织
地区 不详
投 递 者 小编辑
适用人群 未知
收录时间 2014-09-14

软件简介

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'}));
});
展开阅读全文

代码

评论

点击引领话题📣
暂无内容
发表了博客
{{o.pubDate | formatDate}}

{{formatAllHtml(o.title)}}

{{parseInt(o.replyCount) | bigNumberTransform}}
{{parseInt(o.viewCount) | bigNumberTransform}}
没有更多内容
暂无内容
发表了问答
{{o.pubDate | formatDate}}

{{formatAllHtml(o.title)}}

{{parseInt(o.replyCount) | bigNumberTransform}}
{{parseInt(o.viewCount) | bigNumberTransform}}
没有更多内容
暂无内容
暂无内容
0 评论
4 收藏
分享
OSCHINA
登录后可查看更多优质内容
返回顶部
顶部