qtemplate

0.0.3 • Public • Published

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

Type:Object

ヾ( ̄▽ ̄)再见再见

Package Sidebar

Install

npm i qtemplate

Weekly Downloads

0

Version

0.0.3

License

ISC

Unpacked Size

2.1 kB

Total Files

3

Last publish

Collaborators

  • qyl