dry_haml_handlebars 0.0.11 → 0.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -307,7 +307,6 @@ module DryHamlHandlebars
|
|
307
307
|
|
308
308
|
def write_asset_files
|
309
309
|
<<-RUBY
|
310
|
-
Rails.logger.info "WRITING TEMPLATES TO FILE SYSTEM (#{@template_path})"
|
311
310
|
File.open('#{@template_path}', 'w+') {|f| f.write(rendered_haml) }
|
312
311
|
File.open('#{@compiled_template_path}', 'w+') {|f| f.write(hbs_loader) }
|
313
312
|
RUBY
|
data/lib/dry_haml_handlebars.rb
CHANGED
@@ -83,7 +83,7 @@ module DryHamlHandlebars
|
|
83
83
|
|
84
84
|
additional_javascripts = Array.wrap(additional_javascripts)
|
85
85
|
|
86
|
-
compile_all_helper_coffeescripts
|
86
|
+
compile_all_helper_coffeescripts if ["development", "test"].include?(Rails.env.to_s)
|
87
87
|
#load_i18n if defined? SimplesIdeias::I18n
|
88
88
|
|
89
89
|
hbs_context = HandlebarsAssets::Handlebars.send(:context)
|
@@ -93,15 +93,12 @@ module DryHamlHandlebars
|
|
93
93
|
|
94
94
|
self_loading_assets = templates_and_partials + handlebars_helpers + additional_javascripts
|
95
95
|
|
96
|
-
Rails.logger.info "self_loading_assets = #{self_loading_assets}"
|
97
|
-
|
98
96
|
self_loading_assets.each do |fname|
|
99
97
|
basename = File.basename(fname)
|
100
98
|
File.open(fname) do |file|
|
101
99
|
source = file.read
|
102
100
|
source.strip!
|
103
101
|
source.chomp!(";")
|
104
|
-
Rails.logger.info "about to run:\nhbs_context.eval(#{source[0..50] + '...'}, #{basename})"
|
105
102
|
hbs_context.eval(source, basename)
|
106
103
|
end
|
107
104
|
end
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: dry_haml_handlebars
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.0.
|
5
|
+
version: 0.0.12
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Jonathan Chambers
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2013-
|
13
|
+
date: 2013-02-15 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|