qtemplate
v0.0.3
Published
A simple function of the string template
Downloads
2
Readme
Function are
函数作用
A simple function of the string template 一个功能简单的字符串模板
Using the example
使用例子
let tem = require('qtemplate')
let str = tem("This is a ${character} string template ")
let txt = str({character:'simple'});
console.log(txt);
You can do it together
你也可以一起执行
let tem = require('qtemplate')
let txt = tem("This is a ${character} string template ",{character:'simple'})
console.log(txt);
参数说明
parameter description
一、定义要成为模板的字符串 1、 Define the string to be a template
Type:String
二、字符串中的数据来源对象 2、 The data source object in the string