Skip to content

Instantly share code, notes, and snippets.

@detrohutt
Created October 19, 2013 03:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save detrohutt/7051206 to your computer and use it in GitHub Desktop.
Save detrohutt/7051206 to your computer and use it in GitHub Desktop.
jade variable insertion
extends layout
block content
.container
#accordion.panel-group
- for (var i = 0; i < serviceList.length; i++)
.panel.panel-default
.panel-heading
h4.panel-title
a.accordion-toggle(data-toggle='collapse', data-parent='#accordion', href='#'+serviceList[i].name)
= serviceList[i].name
#[serviceList[i].name].panel-collapse.collapse.in
.panel-body
= serviceList[i].description
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment