Created
February 22, 2012 17:34
-
-
Save kembuco/1886215 to your computer and use it in GitHub Desktop.
Underscore template in jade
This file contains 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
script(id='pageTpl', type='text/html') | |
| <div class="page"> | |
| <div class="head"><%=title%> - <%=path%></div> | |
| <div class="body"> | |
| <ul> | |
| <% _(actions).each(function(action) { %> | |
| <li> | |
| <%=action.name%> - <%=Helpers.df(action.time)%> | |
| <% if (action.ext) { %> | |
| <i class="pop icon-info-sign" data-content="<%=_.template($('#extTpl').html(), action)%>" data-original-title="Extra Information"></i> | |
| <% } %> | |
| </li> | |
| <% }); %> | |
| </ul> | |
| </div> | |
| </div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment