Skip to content

Instantly share code, notes, and snippets.

@gotmayonase
Created March 17, 2015 20:26
Show Gist options
  • Save gotmayonase/f66843119014b988fb8b to your computer and use it in GitHub Desktop.
Save gotmayonase/f66843119014b988fb8b to your computer and use it in GitHub Desktop.
var list_template = _.template('\
<% if(items != null) { %> \
<% split_items = items.split(",") %> \
<% for (var i = 0; i < split_items.length; i++) { %> \
<li><%= split_items[i] %></li> \
<% } %> \
<% } %> \
');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment