handlebars_assets 0.6.4 → 0.6.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,7 @@
1
+ ## 0.6.5 (2012-09-09)
2
+
3
+ * Generic options support, `HandlebarsAssets::Config.options = { data: true }` - @wyaeld
4
+
1
5
  ## 0.6.4 (2012-08-25)
2
6
 
3
7
  * Fix bug with the `template\_namespace` config option - @kmayer
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- handlebars_assets (0.6.4)
4
+ handlebars_assets (0.6.5)
5
5
  execjs (>= 1.2.9)
6
6
  sprockets (>= 2.0.3)
7
7
  tilt
data/README.md CHANGED
@@ -95,7 +95,7 @@ If you begin the name of the template with an underscore, it will be recognized
95
95
 
96
96
  Invoke a {{> partial }}
97
97
 
98
- **Important!** Handlebars does not understand nested partials. To support them, partials are named based on their path using `_` instead `/` (skid => slash). So given:
98
+ **Important!** Handlebars does not understand nested partials. To support them, partials are named based on their path using `_` instead of `/` (skid => slash). So given:
99
99
 
100
100
  templates/
101
101
  _form.hbs
@@ -140,6 +140,7 @@ Follow me on [Github](https://github.com/leshill) and [Twitter](https://twitter.
140
140
  * (@cw-moshe) : Remove 'templates/' from names
141
141
  * Spike Brehm (@spikebrehm) : Config.template\_namespace option
142
142
  * Ken Mayer (@kmayer) : Quick fix for template\_namespace option
143
+ * Brad Murray (@wyaeld) : Generic options support
143
144
 
144
145
  # Contributing
145
146
 
@@ -5,7 +5,7 @@ module HandlebarsAssets
5
5
  module Config
6
6
  extend self
7
7
 
8
- attr_writer :compiler, :compiler_path, :known_helpers, :known_helpers_only, :path_prefix, :template_namespace
8
+ attr_writer :compiler, :compiler_path, :known_helpers, :known_helpers_only, :options, :path_prefix, :template_namespace
9
9
 
10
10
  def compiler
11
11
  @compiler || 'handlebars.js'
@@ -44,7 +44,7 @@ module HandlebarsAssets
44
44
  end
45
45
 
46
46
  def generate_options
47
- options = {}
47
+ options = @options || {}
48
48
  options[:knownHelpersOnly] = true if known_helpers_only
49
49
  options[:knownHelpers] = generate_known_helpers_hash if known_helpers.any?
50
50
  options
@@ -1,3 +1,3 @@
1
1
  module HandlebarsAssets
2
- VERSION = "0.6.4"
2
+ VERSION = "0.6.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: handlebars_assets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.4
4
+ version: 0.6.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-25 00:00:00.000000000 Z
12
+ date: 2012-09-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: execjs