Created
October 19, 2013 03:00
-
-
Save detrohutt/7051206 to your computer and use it in GitHub Desktop.
jade variable insertion
This file contains hidden or 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
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