-
-
Save aruprakshit/e89e9cad6213250c7dbf 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
"ab" | |
"a | |
b" |
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
"<%= 'a' -%> | |
<%= 'b' %>" | |
"<%= 'a' %> | |
<%= 'b' %>" |
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
require 'erb' | |
@fruits = %w(apple orange banana) | |
erb = ERB.new(File.open("#{__dir__}/test.html.erb").read, 0, '-') | |
puts erb.result binding |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment