I was wondering if it was possible to use htmlfill + kid? I was
thinking of something like this:
<!-- kid code -->
<form>
<span py:for="" in range(10)"><input name="foo-$i" type="text"
/></span>
<input type="submit" />
</form>
<!-- I WANT TO CALL:
htmlfill()
with the expanded HTML as the argument as follows below -->
<form>
<span> <input name="foo-0" type="text" /> </span>
<span> <input name="foo-1" type="text" /> </span>
<span> <input name="foo-2" type="text" /> </span>
<span> <input name="foo-3" type="text" /> </span>
<span> <input name="foo-4" type="text" /> </span>
<span> <input name="foo-5" type="text" /> </span>
<span> <input name="foo-6" type="text" /> </span>
<span> <input name="foo-7" type="text" /> </span>
<span> <input name="foo-8" type="text" /> </span>
<span> <input name="foo-9" type="text" /> </span>
<input type="submit" />
</form>
<
<!-- end -->
component calls /w content) because I am already using Kid and
I'd prefer to use one templating system so my designers don't get super
confused.
<form py:content="htmlfill(childcontent, error, values"> but I can't
figure out a way to get the "expanded" content of a tag. If anyone
knows how to do this, this would be greatly useful for everyone who
wants to do form validation.
I looked at py:match and it says "During match template expansion (that is, when the match _expression_ is true), the element's descendants are available and may be referenced from Content Producing Constructs to output bits and pieces of the matched items structure." -- That would be quite useful if it was more specific as to how a person can access a tag's contents after they had been expanded.
Thanks,
Igor
