Sha256: 9751f1c1a86b8512543ea5acfd186e1991f230630ca58736701a953adf38d4f5
Contents?: true
Size: 517 Bytes
Versions: 1
Compression:
Stored size: 517 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.merge(local_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.9 | lib/markaby/rails/template_handler.rb |