Sha256: 632ad1bfdb9b96e50896ea6e8bc0f4f5ebf0cf91a474ebe0de1e305f50a1d58f

Contents?: true

Size: 784 Bytes

Versions: 6

Compression:

Stored size: 784 Bytes

Contents

require "handlebars_assets/version"

module HandlebarsAssets
  PATH = File.expand_path("../../vendor/assets/javascripts", __FILE__)

  def self.path
    PATH
  end

  autoload(:Config, 'handlebars_assets/config')
  autoload(:Handlebars, 'handlebars_assets/handlebars')
  autoload(:TiltHandlebars, 'handlebars_assets/tilt_handlebars')

  if defined?(Rails) && defined?(::Rails::Engine)
    require 'handlebars_assets/engine'
  else
    require 'sprockets'
    Sprockets.register_engine '.hbs', TiltHandlebars
    Sprockets.register_engine '.handlebars', TiltHandlebars
    Sprockets.register_engine('.hamlbars', TiltHandlebars) if HandlebarsAssets::Config.haml_available?
    Sprockets.register_engine('.slimbars', TiltHandlebars) if HandlebarsAssets::Config.slim_available?
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
handlebars_assets-0.16 lib/handlebars_assets.rb
handlebars_assets-0.15 lib/handlebars_assets.rb
handlebars_assets-0.14.1 lib/handlebars_assets.rb
handlebars_assets-0.13.0 lib/handlebars_assets.rb
handlebars_assets-0.12.3 lib/handlebars_assets.rb
handlebars_assets-0.12.2 lib/handlebars_assets.rb