We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6660c11 commit fe15e9cCopy full SHA for fe15e9c
lib/gtx.rb
@@ -22,7 +22,7 @@ def initialize(template, filename: nil)
22
end
23
24
def erb_source
25
- template.each_line.map do |line|
+ template.strip.lines.map do |line|
26
case line
27
when /^\s*> ?(.*)/ then eval_vars $1
28
when /^\s*= ?(.*)/ then "<%= #{eval_vars $1.strip} %>"
0 commit comments