Sha256: e6c1eb71798e5eff534dc632754c87232d00fcfa249b1857717dc8b62d5740f9
Contents?: true
Size: 366 Bytes
Versions: 2
Compression:
Stored size: 366 Bytes
Contents
# # # # 注册action view handler # # # # # module MustacheRender::CoreExt # module ActionViewHandler # def self.call template # if template.locals.include? :mustache # ::MustacheRender::Mustache.render(template.source.inspect, {}).html_safe # else # "#{template.source.inspect}".html_safe # end # end # # end # end #
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mustache_render-0.0.13 | lib/mustache_render/core_ext/action_view_handler.rb |
mustache_render-0.0.12 | lib/mustache_render/core_ext/action_view_handler.rb |