Created
February 25, 2014 06:42
-
-
Save lazd/9203956 to your computer and use it in GitHub Desktop.
DOMly Example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div> | |
| <h1>Category: {{data.category}}</h1> | |
| <if data.items.length> | |
| <ul> | |
| <foreach data.items> | |
| <li> | |
| <h2>{{parent.category}}: {{data.name}}</h2> | |
| <h3 if-data.sale='class="sale"'>{{data.rice}}</h3> | |
| <h3>{{formatCount(data.stockCount)}} in stock</h3> | |
| <button unless-data.stockCount='disabled="disabled"'>Buy now</button> | |
| </li> | |
| </foreach> | |
| </ul> | |
| <else> | |
| <p>This category is empty.</p> | |
| </if> | |
| </div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It was my idea, but never implemented.