golf 0.7.2 → 0.7.3
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.
- data/lib/golf/compiler.rb +1 -3
- data/lib/golf/version.rb +1 -1
- metadata +1 -1
data/lib/golf/compiler.rb
CHANGED
|
@@ -167,8 +167,6 @@ module Golf
|
|
|
167
167
|
(doc/'//style').remove
|
|
168
168
|
(doc/'//script').remove
|
|
169
169
|
|
|
170
|
-
puts doc.to_s
|
|
171
|
-
|
|
172
170
|
arr["html"] = doc.to_s
|
|
173
171
|
|
|
174
172
|
#load from files, ".js.coffee", etc
|
|
@@ -181,7 +179,7 @@ module Golf
|
|
|
181
179
|
arr[output_type] = filtered_read(file_path)
|
|
182
180
|
else
|
|
183
181
|
extension = file_path.split('/').last.split('.').last
|
|
184
|
-
arr[extension] = File.read(file_path)
|
|
182
|
+
arr[extension] = File.read(file_path) unless extension == "html"
|
|
185
183
|
end
|
|
186
184
|
end
|
|
187
185
|
arr
|
data/lib/golf/version.rb
CHANGED