Sha256: a49a03b8df4213c2a78f211611cd00315495087c46cc5d6aad4b72606bc4ea03
Contents?: true
Size: 814 Bytes
Versions: 2
Compression:
Stored size: 814 Bytes
Contents
module HoganAssets # Change config options in an initializer: # # HoganAssets::Config.template_extensions = ['mustache'] # # Or in a block: # # HoganAssets::Config.configure do |config| # config.template_extensions = ['mustache'] # config.lambda_support = true # end module Config extend self def configure yield self end attr_writer :lambda_support, :template_extensions def lambda_support? @lambda_support end def template_extensions @template_extensions ||= if haml_available? ['mustache', 'hamstache'] else ['mustache'] end end def haml_available? defined? ::Haml::Engine end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hogan_assets-1.3.1 | lib/hogan_assets/config.rb |
hogan_assets-1.3.0 | lib/hogan_assets/config.rb |