Skip to content

Instantly share code, notes, and snippets.

@luislavena
Created October 14, 2010 23:10
Show Gist options
  • Save luislavena/627258 to your computer and use it in GitHub Desktop.
Save luislavena/627258 to your computer and use it in GitHub Desktop.
_buf = [];_buf << "<!doctype html><html><head><title>Test</title></head><body></body>";unless items.empty?;_buf << "<ol>";items.each do |item|;_buf << "<li>";_buf << item;_buf << "</li>";end;_buf << "</ol>";else;_buf << "<p>No items</p>";end;_buf << "</html>";_buf.join;
_buf = [];_buf << "<!doctype html><html><head><title>Test</title></head><body></body>";unless items.empty?;_buf << "<ol>";items.each do |item|;_buf << "<li>";_buf << Slim.escape_html(item());_buf << "</li>";end;_buf << "</ol>";else;_buf <<
"<p>No items</p>";end;_buf << "</html>";_buf.join;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment