0.1.7 • Published 5 years ago

any-template-compiler v0.1.7

Weekly downloads
32
License
-
Repository
-
Last release
5 years ago

any-template-compiler

编译器 使用方法 输入:一个模板文件,有特定的语法 输出:编译后的内容

语法

// <%% %%> 用于转义 // <% 脚本 // <%= 输出脚本值 // <%- 输出脚本值,unescape

使用

import renderTemplate from 'any-template-compiler'

let ret = renderTemplate('<html><body>title<%= title%><div><%- html%></div></body></html>',{title:'hello',html:'<div></div>'})

console.log(ret)

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago