Sha256: c921fc75ba2d7c74913f83f6ff32bb7906de9a2516c7afc852f2c70e8f226d1a
Contents?: true
Size: 561 Bytes
Versions: 2
Compression:
Stored size: 561 Bytes
Contents
# frozen_string_literal: true module Pug class Railtie < Rails::Engine config.pug = Pug.config config.pug.pretty = Rails.env.development? config.pug.compile_debug = Rails.env.development? config.before_initialize do |app| register_template = -> (env) { (env || app.assets).register_engine('.pug', Pug::Template) } if app.config.assets.respond_to?(:configure) app.config.assets.configure { |env| register_template.call(env) } else register_template.call(nil) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pug-rails-2.0.1 | lib/pug-rails/railtie.rb |
pug-rails-2.0.0 | lib/pug-rails/railtie.rb |