dusty_rails_renderer 0.2.6 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dusty_rails_renderer/version.rb +1 -1
- data/lib/dusty_rails_renderer.rb +4 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6556b15791d26aa356f37d220ad66fd01078ccce
|
4
|
+
data.tar.gz: 53a0029aa0e913d5e24ce614624408ec41ef94b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b7071ef9199810ee9829b01247261284efc7e3b193a81f82d011ce82c1e55b1c4dfa695a6bd7222a4a7a5eae40a870b837864d6674a25bfcc1d3e8b2f810ddf
|
7
|
+
data.tar.gz: a1a1439fef18337ed5f9f11817199eae5b80413012b75a9f8f430332e87e434519490d23ef1d50b096cb52ccd38928c3f64925b2d38f8c167d912f868bececcc
|
data/lib/dusty_rails_renderer.rb
CHANGED
@@ -44,7 +44,7 @@ module DustyRailsRenderer
|
|
44
44
|
end
|
45
45
|
|
46
46
|
if self.configuration.node_dust_compiler
|
47
|
-
command = "
|
47
|
+
command = "#{self.configuration.dust_compiler_command} --name=#{template_name} #{file_url}"
|
48
48
|
template = Open3.capture3("bash","-l","-c",command)
|
49
49
|
escaped_template = escape_javascript(template[0])
|
50
50
|
|
@@ -84,13 +84,15 @@ module DustyRailsRenderer
|
|
84
84
|
attr_accessor :dust_template_base_path
|
85
85
|
attr_accessor :node_dust_compiler
|
86
86
|
attr_accessor :logging
|
87
|
-
|
87
|
+
attr_accessor :dust_compiler_command
|
88
|
+
|
88
89
|
def initialize
|
89
90
|
@dust_config_path = "config/dust_initializer.yml"
|
90
91
|
@dust_js_library_path = "app/assets/javascripts/libraries/dust/dust-full.js"
|
91
92
|
@dust_template_base_path = "app/assets/javascripts/dust/"
|
92
93
|
@production = false
|
93
94
|
@node_dust_compiler = false
|
95
|
+
@dust_compiler_command = "dustc"
|
94
96
|
@logging = true
|
95
97
|
end
|
96
98
|
end
|