Module: Handlebarer

Defined in:
lib/handlebarer/engine.rb,
lib/handlebarer/source.rb,
lib/handlebarer/version.rb,
lib/handlebarer/compiler.rb,
lib/handlebarer/renderer.rb,
lib/handlebarer/template.rb,
lib/handlebarer/serialize.rb,
lib/handlebarer/configuration.rb

Defined Under Namespace

Modules: Renderer, Serialize, Source Classes: Compiler, Configuration, Engine, Template

Constant Summary collapse

VERSION =
"0.0.3"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration.



3
4
5
# File 'lib/handlebarer/configuration.rb', line 3

def configuration
  @configuration
end

Class Method Details

.configure {|config| ... } ⇒ Object

Configure Handlebarer

Examples:

Handlebarer.configure do |config|
  config.helpers_path = Rails.root.join('app','assets','javascripts','helpers')
  config.views_path = Rails.root.join('app','assets','javascripts','views')
end

Yields:

  • (config)

    Handlebarer::Configuration instance



13
14
15
16
# File 'lib/handlebarer/configuration.rb', line 13

def self.configure
  self.configuration ||= Configuration.new
  yield(configuration)
end