Sha256: 7229dcdc8c2e9fa03654b8a916353a2db32f3ba346de6963883338b59c51676c

Contents?: true

Size: 254 Bytes

Versions: 3

Compression:

Stored size: 254 Bytes

Contents

require 'musterb'

module Musterb::TemplateHandler
  def self.call(template)
   erb = Musterb.to_erb(template.source)
   klass = ActionView::Template::Handlers::ERB
   klass.erb_implementation.new(erb, :trim => (klass.erb_trim_mode == "-")).src
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
musterb-0.0.5 lib/musterb/template_handler.rb
musterb-0.0.4 lib/musterb/template_handler.rb
musterb-0.0.3 lib/musterb/template_handler.rb