Last active
December 12, 2015 12:09
-
-
Save ohcibi/4770155 to your computer and use it in GitHub Desktop.
This file contains 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
<script type="text/x-handlebars" data-template-name="rooms"> | |
<ul id="rooms"> | |
{{#each controller}} | |
<li> | |
<h1>{{name}}</h1> | |
{{ partial devices }} | |
</li> | |
{{/each}} | |
</ul> | |
</script> | |
<script type="text/x-handlebars" data-template-name="_devices"> | |
{{#if devices}} | |
<ul class="devices"> | |
{{#each device in devices}} | |
<li class="{{device.type}}">{{device.name}}</li> | |
{{/each}} | |
</ul> | |
{{/if}} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment