Skip to content

Instantly share code, notes, and snippets.

@jdibiccari
Last active August 29, 2015 14:02
Show Gist options
  • Save jdibiccari/5c4c07a469f5a5752532 to your computer and use it in GitHub Desktop.
Save jdibiccari/5c4c07a469f5a5752532 to your computer and use it in GitHub Desktop.
blog_post_5
=begin
Modifier options for trim_mode
___________________________________________________________
% enables Ruby code processing for lines beginning with %
<> omit newline for lines starting with <% and ending in %>
> omit newline for lines ending in %>
- omit blank lines ending in -%>
=end
#New erb object with trim_mode set
template = ERB.new(File.read("lib/views/genres.html.erb"), 0, "-")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment