golf 0.5.5 → 0.5.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/golf/compiler.rb +2 -3
- data/lib/golf/version.rb +1 -1
- metadata +1 -1
data/lib/golf/compiler.rb
CHANGED
@@ -149,16 +149,15 @@ module Golf
|
|
149
149
|
arr = {}
|
150
150
|
css = (doc/'//style').first
|
151
151
|
if css
|
152
|
-
arr["css"] = css
|
152
|
+
arr["css"] = css.inner_html
|
153
153
|
end
|
154
154
|
js = (doc/'//script').first
|
155
155
|
if js
|
156
|
-
arr["js"] = js
|
156
|
+
arr["js"] = js.inner_html
|
157
157
|
end
|
158
158
|
(doc/'//style').remove
|
159
159
|
(doc/'//script').remove
|
160
160
|
|
161
|
-
|
162
161
|
arr["html"] = doc.to_s
|
163
162
|
|
164
163
|
#load from files, ".js.coffee", etc
|
data/lib/golf/version.rb
CHANGED