[html-formfu] RFC: nested block tags
Daisuke Maki
daisuke at endeworks.jp
Wed Jul 4 15:53:10 GMT 2007
Hi,
One of the things that my HTML coders keep telling me about formfu is
that they want to create "block" elements that can be nested. A simple
example is something like
- type: block
tag: div
elements:
- type: block
tag: span
content: foo
that would produce <div><span>foo</span></div> taking this further, it
would be nice if you can specify a text block of sorts:
- type: block
tag: div
elements:
- type: plaintext
content: foo
- type: block
tag: span
content: bar
- type: plaintext
content: baz
Which would produce <div>foo<span>bar</span>baz</div>
This would mainly be used to generate HTML content that goes within a
form, like warnings or notes about the form inputs.
Does this sound reasonable?
--d
More information about the HTML-FormFu
mailing list