art-template(v4.12.1,v4.10.0,v4.9.1,v4.9.0,v4.8.2,v4.8.1)下载地址
来源: 2017-09-07 16:19:16 评论:点击:
bail
默认为 true
- 修复过滤器不支持 javascript 表达式的问题 #430
include
、extend
支持使用函数表达式。例如 {{include(file, {list[]})}}
#414
- 修复
options.escape=false
不生效的 BUG
- 修复标准语法的 BUG #408,并且不再兼容 v3 的辅助方法调用:
{{helper args}}
- 修复 EJS
<%- include(src) %>
语句兼容问题
- 修复模板内部
$escape
与 $each
变量可能没有定义的问题 #3 #1
- 修复子模板没有继承父模板编译 options 问题
- 渲染函数参数可以为空
- 过滤器支持在运行时注入 #4
- 过滤器语法可以直接使用全局对象,无需特别声明。例如
{{url | encodeURIComponent}}
- 增加
ignore
配置,可以让模板编译器忽略指定的变量初始化
- 增加
htmlMinifierOptions
配置,可对 htmlMinifie 压缩器进行配置
$escape()
函数提高 4 倍性能
- 支持输出 sourceMap: sourcesContent
- 修复
{{/if}}
语句不支持头尾空格的问题
- 修复 NodeJS 版本兼容问题 #393