summaryrefslogtreecommitdiffstats
path: root/lib/handlebars/compiler/compiler.js
diff options
context:
space:
mode:
authorTom Locke <tom@tomlocke.com>2011-09-26 09:47:30 +0100
committerTom Locke <tom@tomlocke.com>2011-09-26 09:47:30 +0100
commitcd927e9cda392ab12f1e0a5e09f86f42573af98a (patch)
tree91466d72fe83f7781ec329c6b17d20c4cbe58117 /lib/handlebars/compiler/compiler.js
parentb832c85923055d81dbb85cfb52e7b9d9640e0482 (diff)
downloadhandlebars.js-cd927e9cda392ab12f1e0a5e09f86f42573af98a.zip
handlebars.js-cd927e9cda392ab12f1e0a5e09f86f42573af98a.tar.gz
handlebars.js-cd927e9cda392ab12f1e0a5e09f86f42573af98a.tar.bz2
Add noEscape option to Handlebars.compile
Diffstat (limited to 'lib/handlebars/compiler/compiler.js')
-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 0b4c23d..c7d051e 100644
--- a/lib/handlebars/compiler/compiler.js
+++ b/lib/handlebars/compiler/compiler.js
@@ -220,7 +220,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');