Sha256: 2cf5fe7bc2c0c35fa7f12e86ba8912b49db24748752ac929db6b5759972644ec
Contents?: true
Size: 440 Bytes
Versions: 4
Compression:
Stored size: 440 Bytes
Contents
require 'action_view' module ActionView module Template::Handlers class JsonifyBuilder < Template::Handler include Compilable self.default_format = Mime::JSON def compile(template) "json = ::Jsonify::Builder.new();" + template.source + ";json.compile!;" end end end end ActionView::Template.register_template_handler :jsonify, ActionView::Template::Handlers::JsonifyBuilder
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
jsonify-0.0.4 | lib/jsonify/rails.rb |
jsonify-0.0.3 | lib/jsonify/rails.rb |
jsonify-0.0.2 | lib/jsonify/rails.rb |
jsonify-0.0.1 | lib/jsonify/rails.rb |