Skip to content

Instantly share code, notes, and snippets.

@RobertTheGrey
Created May 31, 2012 21:19
Show Gist options
  • Save RobertTheGrey/2846383 to your computer and use it in GitHub Desktop.
Save RobertTheGrey/2846383 to your computer and use it in GitHub Desktop.
Spark conditional rendering
<!-- conditional node -->
<p if='model.IsFull' class='resultmessage'>The list is full</p>
<!-- conditional attribute -->
<ul>
<li each="var product in Products" class="first?{productIsFirst} last?{productIsLast}">
${product.Name}
</li>
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment