summaryrefslogtreecommitdiffstats
path: root/lib/handlebars/compiler
diff options
context:
space:
mode:
authorkpdecker <kpdecker@gmail.com>2014-08-12 14:07:13 -0500
committerkpdecker <kpdecker@gmail.com>2014-08-12 14:41:58 -0500
commit2a47d66ee9fdf467588f68de48a521ed2a1f59e1 (patch)
treed01f492d2106c44caa3ea440cc65562bb05fdfe5 /lib/handlebars/compiler
parent50c657f138d01c90d2dee19c7c15ca81bb0ee165 (diff)
downloadhandlebars.js-2a47d66ee9fdf467588f68de48a521ed2a1f59e1.zip
handlebars.js-2a47d66ee9fdf467588f68de48a521ed2a1f59e1.tar.gz
handlebars.js-2a47d66ee9fdf467588f68de48a521ed2a1f59e1.tar.bz2
Drop omitted content tags from generated output
Diffstat (limited to 'lib/handlebars/compiler')
-rw-r--r--lib/handlebars/compiler/compiler.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/handlebars/compiler/compiler.js b/lib/handlebars/compiler/compiler.js
index 3e83a62..f823daa 100644
--- a/lib/handlebars/compiler/compiler.js
+++ b/lib/handlebars/compiler/compiler.js
@@ -222,7 +222,9 @@ Compiler.prototype = {
},
content: function(content) {
- this.opcode('appendContent', content.string);
+ if (!content.omit) {
+ this.opcode('appendContent', content.string);
+ }
},
mustache: function(mustache) {