Sha256: abfd32a50dd3681b8c06aaf0900135176108240db7202cd20f0115f595ba3713
Contents?: true
Size: 697 Bytes
Versions: 1
Compression:
Stored size: 697 Bytes
Contents
require 'sprockets' require 'tilt/opal' module Opal::Rails class Resolver attr_accessor :context def initialize(context) @context = context end def resolve(path, content_type = :self) options = {} options[:content_type] = content_type unless content_type.nil? context.resolve(path, options) rescue Sprockets::FileNotFound, Sprockets::ContentTypeMismatch nil end def public_path(path, scope) context.asset_paths.compute_public_path(path, scope) end def process(path) context.environment[path].to_s end end end Sprockets::Engines #invoke autoloading Sprockets.register_engine '.opal', Tilt::OpalTemplate
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
opal-rails-0.0.1.a | lib/opal/rails/template_handlers.rb |