多种语言实现:http://mustache.github.io/
js版本文档:https://github.com/janl/mustache.js
简介:
mustache.js is a zero-dependency implementation of the mustache template system in JavaScript.
Node 环境使用
安装
$ npm install mustache --save
基本语法
变量: {
{name}}
列表:{
{#list}}{
{.}}{
{/list}}
对象:{
{obj.name}} - {
{obj.age}}
代码示例
const<