Closed Darmody closed 7 years ago
<div> A </div>
{{if false }}
do some things
{{fi}}
<div> B </div>
it will output to
<div> A </div>
// here is an empty line
// here is an empty line
// here is an empty line
<div> B </div>
Yes, because:
<div> A </div>\n
{{if false }}
do some things
{{fi}}\n
<div> B </div>
but you can write it as:
<div> A </div> {{if false }}
do some things
{{fi}}<div> B </div>
Tangular doesn't minify the output. I use Tangular (sometimes) in <pre
tag and here are very important white spaces, so therefore....
But {{if false}}
don't mean anything in output. I think it should not take up a line.
And it is a different thing from minify.
I'll look into it this weekend.
@petersirka That's cool!
I have fixed it. Try to install latest version from NPM.
Can you write a simple demo?