Sha256: 2993cb4b1f977b414a795cc80f349d1fd3d252502b666de640ef612fef755b58
Contents?: true
Size: 378 Bytes
Versions: 5
Compression:
Stored size: 378 Bytes
Contents
class PartialRenderer < Liquid::Tag #include ActionController::RequestForgeryProtection def initialize(tag_name, message, tokens) super @message = message end def render(context) ActionController::Base.new.render_to_string(:partial => @message.strip, :layout => false) end end Liquid::Template.register_tag('render_partial', PartialRenderer)
Version data entries
5 entries across 5 versions & 2 rubygems