Last active
August 29, 2015 14:02
-
-
Save jdibiccari/5c4c07a469f5a5752532 to your computer and use it in GitHub Desktop.
blog_post_5
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
=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