Created
April 22, 2012 20:18
-
-
Save jacine/2466618 to your computer and use it in GitHub Desktop.
Options?
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
| {% helperclasses on %} | |
| <!-- Simple example (default) --> | |
| {% if items %} | |
| <{{ type }}{{ items.attributes }}> | |
| {% for item in items %} | |
| <li{{ item.attributes }}> {{- item -}} </li> | |
| {% endfor %} | |
| </{{ type }}> | |
| {% endif %} | |
| <!-- More granular example --> | |
| {% if items %} | |
| <{{ type }}{{ items.attributes }}> | |
| {% for item in items %} | |
| {% if item.attributes.href %} | |
| <li><a href="{{ item.attributes.href }}"> {{ item.title }} </a></li> | |
| {% else %} | |
| <li>{{- item -}}</li> | |
| {% endif %} | |
| {% endfor %} | |
| </{{ type }}> | |
| {% endif %} |
OMG. lol. If you pull this off, you will never have to buy beer at a Drupalcon again.
Author
LOL! That would be awesome. :D
I updated it to what I think it's gonna be. ;)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Looks fantastic, @jacine. You are doing great work. Love watching you lead. =)