Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Conditional tags don't work properly when omitting

$
0
0
It's a common technique to skip li escape tags in order to remove whitespace between li's. This is particularly relevant when using inline-block styling. can.Mustache seems to not construct document fragments when end li's are omitted.

Additionally, there seems to be extra whitespace added when leaving the li in.

  1. <ul>
  2. <li><a href="http://www.google.com>Gooooogle</a>
  3. {{#bar}}<li><a href="http://www.bar.com>Bar</a>{{/bar}}
  4. <li><a href="http://www.foo.com>Foo</a>
  5. </ul>

Viewing all articles
Browse latest Browse all 3491

Trending Articles