Sha256: 128f3319fff4e9543169c61676f508d289cf4e3a5ef02ca0e928107693299b79
Contents?: true
Size: 496 Bytes
Versions: 1
Compression:
Stored size: 496 Bytes
Contents
module Markaby module Rails class TemplateHandler < ActionView::TemplateHandler include ActionView::TemplateHandlers::Compilable def compile(template) <<-CODE @output_buffer = '' if @output_buffer.blank?; output = Markaby::Builder.new(assigns, self); output.copy_instance_variables_from(self, [:@helpers, :@assigns]); output.instance_eval(#{template.source.dump}); output.to_s; CODE end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dinsley-markaby-0.0.7 | lib/markaby/rails/template_handler.rb |