Skip to content

Instantly share code, notes, and snippets.

@JustinTulloss
Created October 19, 2010 07:09
Show Gist options
  • Select an option

  • Save JustinTulloss/633752 to your computer and use it in GitHub Desktop.

Select an option

Save JustinTulloss/633752 to your computer and use it in GitHub Desktop.
Example of syntax
{= render_generic_tab_bar(tab_bar_class, options)
<div class="{{ tab_bar_class }} clearfix">
{% _.each(options.tabs, function(tab) {
if (tab.visible === undefined || tab.visible ) { %}
<span class="tab{% if (tab.name == options.selected_tab) emit(' selected'); %}"><a href="{{ tab.url }}">{{ tab.text }}</a></span>
{% } %}
{% }); %}
</div>
=}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment