From b57940491203f7eb6743067fc47beb5b2551d739 Mon Sep 17 00:00:00 2001 From: Jan Lehnardt Date: Sat, 14 Nov 2009 14:43:38 +0100 Subject: [PATCH] s/ENABLE-STRING-ARRAYS/JSTACHE-ENABLE-STRING-ARRAYS/ --- CHANGES.md | 3 ++- examples/array_of_strings.html | 2 +- mustache.js | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 7fb74b2..3967192 100644 --- a/CHANGES.md +++ b/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}} diff --git a/examples/array_of_strings.html b/examples/array_of_strings.html index 56480d9..dcd1c92 100644 --- a/examples/array_of_strings.html +++ b/examples/array_of_strings.html @@ -1,2 +1,2 @@ -{{%ENABLE-STRING-ARRAYS}} +{{%JSTACHE-ENABLE-STRING-ARRAYS}} {{#array_of_strings}} {{.}} {{/array_of_strings}} \ No newline at end of file diff --git a/mustache.js b/mustache.js index 37284fc..20d3f43 100644 --- a/mustache.js +++ b/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}; } },