[html-formfu] Place arbitrary markup inside of element's div?

Carl Franks fireartist at gmail.com
Thu Nov 19 11:23:53 GMT 2009


2009/11/19 Jens Schwarz <blacky6767 at gmx.de>:
>
> Is it possible to add (via yml) arbitrary markup *inside* of this div *beside* the input? P.ex. ...
>
> <div class="text">
>  <input type="Text" name="foo"/>
>  Some <b>bold</b> text
> </div>

The only thing I can think of is:

  - type: Text
    name: foo
    comment_xml: 'Some <b>bold</b> text'

which will render as:

<div class="text comment">
<input name="foo" type="text" />
<span class="comment">
Some <b>bold</b> text
</span>
</div>

Carl



More information about the HTML-FormFu mailing list