Sha256: c38d032a50f71cb5fa49dc84931c1b6313b649875b1994275048c029fe0c8726
Contents?: true
Size: 197 Bytes
Versions: 3
Compression:
Stored size: 197 Bytes
Contents
module OffTheGrid # ERB related helper methods module ErbHelpers def render(template_data) ERB.new(template_data.gsub(/^(\t|\s)+<%/, '<%'), 0, '<>').result(binding) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
off_the_grid-0.0.6 | lib/off_the_grid/erb_helpers.rb |
off_the_grid-0.0.5 | lib/off_the_grid/erb_helpers.rb |
off_the_grid-0.0.4 | lib/off_the_grid/erb_helpers.rb |