Skip to content

Instantly share code, notes, and snippets.

@simpleshadow
Created May 16, 2013 23:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simpleshadow/5595944 to your computer and use it in GitHub Desktop.
Save simpleshadow/5595944 to your computer and use it in GitHub Desktop.
Fixtures handlebars template. Fixtures no workie. :'(
<section class="navigation"></section>
<section id="content">
<section id="conversations">
<div class="wrapper">
{{#each model}}
{{#linkTo 'conversation' this}}
{{log this.messages.content.[0]}}
<div class="scrolls">
<div class="imageDiv">
<div class="messages">
<div class="message">
<div class="time">{{this.messages.[0].captures.[0].date}}</div>
<div class="conversation">{{this.messages.[0].text}}</div>
</div>
</div>
<div class="imageWrapper">
{{#each this.messages}}
{{#each this.captures}}
<img {{bindAttr src="this.src"}} />
{{/each}}
{{/each}}
</div> <!-- imageWrapper -->
</div> <!-- imageDiv -->
<div class="names">{{messages.1.text}}</div>
</div>
{{/linkTo}} <!-- scrolls -->
{{/each}}
</div>
</sections>
</section> <!-- content -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment