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.
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/README.md +2 -1
- data/lib/handlebars_assets/config.rb +2 -2
- data/lib/handlebars_assets/version.rb +1 -1
- metadata +2 -2
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
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
|
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
|
+
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-
|
12
|
+
date: 2012-09-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: execjs
|