Skip to content

Instantly share code, notes, and snippets.

@tpitale
Created November 3, 2012 20:41
Show Gist options
  • Select an option

  • Save tpitale/4008652 to your computer and use it in GitHub Desktop.

Select an option

Save tpitale/4008652 to your computer and use it in GitHub Desktop.
Make it all one handlebar inside a rails html.erb template.
<script type="text/x-handlebars" data-template-name="application">
<div class="column column-1">
{{view Docket.ProblemsStatsView}}
<%# render 'sidebar' %>
</div>
<div class="column column-2" id="problems-container">
{{view Docket.ProblemsIndexView}}
<%# render 'problems', :problems => @problems %>
</div>
<div class="column column-3">
<div class="thin-scroll scroll-wrapper">
{{#if Docket.problemsController.isEditing}}
{{view Docket.ProblemsEditView}}
{{else}}
{{view Docket.ProblemsShowView}}
{{/if}}
</div>
</div>
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment