roda-component 0.1.55 → 0.1.56
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.
- checksums.yaml +4 -4
- data/lib/roda/component/events.rb +1 -1
- data/lib/roda/component/form.rb +1 -1
- data/lib/roda/component/version.rb +1 -1
- data/lib/roda/component.rb +2 -2
- data/lib/roda/plugins/component.rb +1 -1
- 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: 5663fb4576c922d03561f3c769b18f55a0abed15
|
4
|
+
data.tar.gz: 1bc88493e674d9d5c2d9e0450a7298f7a89a5baa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aacbd4f1728b5e97fdef4f576a5e3a3ba3e283e489359f0bd59c173f212e7b779c4ea91dff0d2305982e2f9c4cb0d3374ac26acf770df8c775bb531839217662
|
7
|
+
data.tar.gz: f9dedbfb42ca468c72e03304158511c75964d41a2eb9a153abe7d919d7cc7264bc938b55694facdc7f379431d2380f165e242d341cef2af8ba2a2bd9b3477916
|
@@ -123,7 +123,7 @@ class Roda
|
|
123
123
|
response = Component::Instance.new(component(comp), scope).instance_exec options, &block
|
124
124
|
|
125
125
|
if response.is_a? Roda::Component::DOM
|
126
|
-
content = response.
|
126
|
+
content = response.to_xhtml
|
127
127
|
else
|
128
128
|
content = response
|
129
129
|
end
|
data/lib/roda/component/form.rb
CHANGED
@@ -226,7 +226,7 @@ class Roda
|
|
226
226
|
if client?
|
227
227
|
field_error_dom = DOM.new(`#{tmpl.dom}[0].outerHTML`)
|
228
228
|
else
|
229
|
-
field_error_dom = DOM.new(tmpl.dom.
|
229
|
+
field_error_dom = DOM.new(tmpl.dom.to_xhtml)
|
230
230
|
end
|
231
231
|
else
|
232
232
|
field_error_dom = DOM.new('<span class="field-error"><span>')
|
data/lib/roda/component.rb
CHANGED
@@ -329,7 +329,7 @@ class Roda
|
|
329
329
|
# the reason we ave the raw html is so that we can use it client side.
|
330
330
|
def tmpl name, dom, remove = true
|
331
331
|
cache[:tmpl][name] = { dom: remove ? dom.remove : dom }
|
332
|
-
cache[:tmpl][name][:html] = cache[:tmpl][name][:dom].
|
332
|
+
cache[:tmpl][name][:html] = cache[:tmpl][name][:dom].to_xhtml
|
333
333
|
cache[:tmpl][name]
|
334
334
|
end
|
335
335
|
alias :add_tmpl :tmpl
|
@@ -374,7 +374,7 @@ class Roda
|
|
374
374
|
def dom
|
375
375
|
if server?
|
376
376
|
# TODO: duplicate cache[:dom] so we don't need to parse all the html again
|
377
|
-
@_dom ||= DOM.new(cache[:dom].dom.
|
377
|
+
@_dom ||= DOM.new(cache[:dom].dom.to_xhtml)
|
378
378
|
else
|
379
379
|
@_dom ||= DOM.new(Element)
|
380
380
|
end
|