summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorYehuda Katz <wycats@gmail.com>2011-12-23 16:57:39 -0800
committerYehuda Katz <wycats@gmail.com>2011-12-23 16:57:39 -0800
commit647d5adf85c8d845cd0a614e8e4c8dffbe64cf09 (patch)
treee4d0442977a6e6e96a471ac73334a2c103687959 /lib
parent6df51733d338a261f0d159dfa2ccc5f3cd99b500 (diff)
parentcd927e9cda392ab12f1e0a5e09f86f42573af98a (diff)
downloadhandlebars.js-647d5adf85c8d845cd0a614e8e4c8dffbe64cf09.zip
handlebars.js-647d5adf85c8d845cd0a614e8e4c8dffbe64cf09.tar.gz
handlebars.js-647d5adf85c8d845cd0a614e8e4c8dffbe64cf09.tar.bz2
Merge pull request #121 from tablatom/master
Added a noEscape option to Handlebars.compile
Diffstat (limited to 'lib')
-rw-r--r--lib/handlebars/compiler/compiler.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/handlebars/compiler/compiler.js b/lib/handlebars/compiler/compiler.js
index 39213e7..039a34e 100644
--- a/lib/handlebars/compiler/compiler.js
+++ b/lib/handlebars/compiler/compiler.js
@@ -221,7 +221,7 @@ Handlebars.JavaScriptCompiler = function() {};
this.opcode('invokeMustache', params.length, mustache.id.original, !!mustache.hash);
- if(mustache.escaped) {
+ if(mustache.escaped && !this.options.noEscape) {
this.opcode('appendEscaped');
} else {
this.opcode('append');