Sha256: bf8e08a2892f46419fcc8f2ee648c568cd606546f2da69542444aa24b867e3d1

Contents?: true

Size: 461 Bytes

Versions: 5

Compression:

Stored size: 461 Bytes

Contents

require 'mustache'
require 'poirot/handler'
require 'poirot/view'
require 'poirot/asset_helper'

ActionView::Template.register_template_handler(:mustache, Poirot::Handler)
ActionView::Base.send :include, Poirot::AssetHelper

module Poirot
  class Engine < Rails::Engine ; end if Rails.version >= "3.1"
  class Railtie < Rails::Railtie
    config.before_configuration do |app|
      app.config.autoload_paths += %W(#{app.config.root}/app/views)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
poirot-0.2.2 lib/poirot.rb
poirot-0.2.1 lib/poirot.rb
poirot-0.2.0 lib/poirot.rb
poirot-0.1.0 lib/poirot.rb
poirot-0.0.3 lib/poirot.rb