Created
October 14, 2010 23:10
-
-
Save luislavena/627258 to your computer and use it in GitHub Desktop.
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
_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; |
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
_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