[html-formfu] load_config_file in the middle of YAML
Ruben Fonseca
rubenfonseca at di.uminho.pt
Wed Oct 10 12:02:17 GMT 2007
Hi!
I'm trying to use the load_config_file in the middle of a YAML
specification to load some common form widgets from another file, but
so far I've been unsuccessful.
Imagine this YAML:
---
action: /foo
elements:
- type: Text
...
- load_config_file: /foo/file
- type: Submit
...
And on /foo/file I have:
---
elements:
- type: Text
...
This generates an error "an't locate object method "elements" via
package "HTML::FormFu::Element::Text" at /opt/local/lib/perl5/
site_perl/5.8.8/HTML/FormFu/ObjectUtil.pm line 264", so I'm certain I
did something wrong.
Can you tell me the proper way to do this please?
thank you!
Ruben
More information about the HTML-FormFu
mailing list