Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <% # XXX PROFILING %>
- <% begin = Date.now() %>
- <!-- ... -->
- <% for category in categories: %>
- <!-- ... -->
- <% # XXX PROFILING %>
- <% beginCategory = Date.now() %>
- <% for thing in things: %>
- <%- @partial 'partials/thing', {thing} %>
- <% end %>
- <% # XXX PROFILING %>
- <% time = Date.now() - beginCategory %>
- <% console.log "#{things.length} thing partials rendered in #{time} ms\n" %>
- <!-- ... -->
- <% end %>
- <!-- ... -->
Add Comment
Please, Sign In to add comment