瀏覽代碼

s/ENABLE-STRING-ARRAYS/JSTACHE-ENABLE-STRING-ARRAYS/

tags/0.2
Jan Lehnardt 16 年之前
父節點
當前提交
b579404912
共有 3 個文件被更改,包括 4 次插入3 次删除
  1. +2
    -1
      CHANGES.md
  2. +1
    -1
      examples/array_of_strings.html
  3. +1
    -1
      mustache.js

+ 2
- 1
CHANGES.md 查看文件

@@ -3,4 +3,5 @@
## 0.2 (??-??-????)

* ctemplate compat: Partials are indicated by >, not <

* Add support for {{%PRAGMA}} to enable features
* Made array of strings an option. Enable with {{%JSTACHE-ENABLE-STRING-ARRAYS}}

+ 1
- 1
examples/array_of_strings.html 查看文件

@@ -1,2 +1,2 @@
{{%ENABLE-STRING-ARRAYS}}
{{%JSTACHE-ENABLE-STRING-ARRAYS}}
{{#array_of_strings}} {{.}} {{/array_of_strings}}

+ 1
- 1
mustache.js 查看文件

@@ -202,7 +202,7 @@ var Mustache = function() {
create_context: function(_context) {
if(this.is_object(_context)) {
return _context;
} else if(this.pragmas["ENABLE-STRING-ARRAYS"]) {
} else if(this.pragmas["JSTACHE-ENABLE-STRING-ARRAYS"]) {
return {'.': _context};
}
},


Loading…
取消
儲存