Sha256: b8e5abeb96bbcb976a0806a66e30a190fb904812e1eade3ffc8c5e39d4af68b0

Contents?: true

Size: 435 Bytes

Versions: 58

Compression:

Stored size: 435 Bytes

Contents

module Revelry
  module Core
    class PropsTemplate < ActionView::Template
      def render(view, locals, buffer = nil, &block)
        # Invoke the execjs-rails lambda which makes the props for the server-side
        # render, but instead of rendering a template, just give me the props as a
        # json object
        Rails.application.config.execjs_rails.view_to_function_options.call(view, locals)
      end
    end
  end
end

Version data entries

58 entries across 58 versions & 1 rubygems

Version Path
revelry_core-0.1.24.0 lib/revelry_core/props_template.rb
revelry_core-0.1.23.0 lib/revelry_core/props_template.rb
revelry_core-0.1.22.0 lib/revelry_core/props_template.rb
revelry_core-0.1.21.0 lib/revelry_core/props_template.rb
revelry_core-0.1.20.0 lib/revelry_core/props_template.rb
revelry_core-0.1.19.0 lib/revelry_core/props_template.rb
revelry_core-0.1.18.0 lib/revelry_core/props_template.rb
revelry_core-0.1.17.0 lib/revelry_core/props_template.rb
revelry_core-0.1.16.0 lib/revelry_core/props_template.rb
revelry_core-0.1.15.0 lib/revelry_core/props_template.rb
revelry_core-0.1.14.0 lib/revelry_core/props_template.rb
revelry_core-0.1.13.0 lib/revelry_core/props_template.rb
revelry_core-0.1.12.6 lib/revelry_core/props_template.rb
revelry_core-0.1.12.5 lib/revelry_core/props_template.rb
revelry_core-0.1.12.4 lib/revelry_core/props_template.rb
revelry_core-0.1.12.3 lib/revelry_core/props_template.rb
revelry_core-0.1.12.2 lib/revelry_core/props_template.rb
revelry_core-0.1.12.0 lib/revelry_core/props_template.rb
revelry_core-0.1.11.6 lib/revelry_core/props_template.rb
revelry_core-0.1.11.5 lib/revelry_core/props_template.rb