diff options
author | kpdecker <kpdecker@gmail.com> | 2014-08-12 14:07:13 -0500 |
---|---|---|
committer | kpdecker <kpdecker@gmail.com> | 2014-08-12 14:41:58 -0500 |
commit | 2a47d66ee9fdf467588f68de48a521ed2a1f59e1 (patch) | |
tree | d01f492d2106c44caa3ea440cc65562bb05fdfe5 /lib/handlebars/compiler | |
parent | 50c657f138d01c90d2dee19c7c15ca81bb0ee165 (diff) | |
download | handlebars.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.js | 4 |
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) { |