template-engine-tiny
v1.0.0
Published
a simle template engine
Downloads
2
Readme
简单的一个字符串转化引擎
templateEngineIns.convert("I am {{name}}. {{info.age}} years old", {
name: "lightfish",
info: {
age: 25,
},
});
构造函数
interface TemplateEngine {
// 字符串分隔符".", 和 解析字符串的 插值分隔符 ["{{","}}"]
constructor (parseSplitToken?: string, delimiters?: [string, string]): TemplateEngine
}