Skip to content

Commit

Permalink
Update Readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
wulijian committed Oct 10, 2014
1 parent 9b6d243 commit 3a41931
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Readme.md
Expand Up @@ -7,15 +7,15 @@ ktemplate 是依赖于 nodejs 的 js 模版。
ktemplate 的模板,会通过nodejs 转变成js的一个函数,函数会包含一个参数data,用来传递数据,返回的是拼凑好的html代码。

例如:
```
```HTML
<div id="test">
hi, <%= hi %><br>
<a href="javascript:void(0)"><%= hello %></a>
</div>

```
经过编译,会生成方法:
```
```Javascript
function anonymous(_data) {
var htmlCode = "";
with (_data || {}) {
Expand Down

0 comments on commit 3a41931

Please sign in to comment.