Sha256: 231f5fff2c0738544e69a54af7b3da92ab0e5304764f2e30740dca396ec2098f

Contents?: true

Size: 435 Bytes

Versions: 1

Compression:

Stored size: 435 Bytes

Contents

module HandlebarsAssets
  # Change config options in an initializer:
  #
  # HandlebarsAssets::Config.path_prefix = 'app/templates'
  #
  # Or in a block:
  #
  # HandlebarsAssets::Config.configure do |config|
  #   path_prefix = 'app/templates'
  # end

  module Config
    extend self

    def configure
      yield self
    end

    attr_writer :path_prefix

    def path_prefix
      @path_prefix ||= 'templates'
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
handlebars_assets-0.6.1 lib/handlebars_assets/config.rb