Sfoglia il codice sorgente

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

tags/0.2
Jan Lehnardt 16 anni fa
parent
commit
b579404912
3 ha cambiato i file con 4 aggiunte e 3 eliminazioni
  1. +2
    -1
      CHANGES.md
  2. +1
    -1
      examples/array_of_strings.html
  3. +1
    -1
      mustache.js

+ 2
- 1
CHANGES.md Vedi File

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


* ctemplate compat: Partials are indicated by >, not < * 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 Vedi File

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

+ 1
- 1
mustache.js Vedi File

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


Loading…
Annulla
Salva