[Petal] Mdifiers to create attributes and custom field types?
William McKee
william at knowmad.com
Tue Oct 13 17:45:42 GMT 2009
Hi Justin,
It's been a long time since I've seen traffic on this list. As much as I
love Petal, it just hasn't been successful in winning over mindshare
from other toolkits for the projects we're using (e.g., WebGUI). At any
rate, I'
>
> I'm wondering if either of two things are possible in Petal.
>
> 1) A modifier that can create a series of element attributes. Ideally,
> something like:
>
> <tag tal:attributes='modifier --${some/hashref}' />
>
> Wherein modifier would return a data structure/string/something that
> would
> allow it to make lots of attributes on tag.
>
> And,
>
> 2) Is it possible to write a modifier that can inject a tag type? I
> don't even
> know how I would write this to give an example, but I'd like to be
> able to
> dynamically generate the tag name itself based on output from a
> subtourine/data
> structure/whatever.
>
> Sometimes I'll want a <div, sometimes, I'll want a <span, sometimes, I
> might
> want a <ul, who knows.
>
> Thanks,
> Justin
>
--
Knowmad Technologies
Smart Web Solutions - maximizing business results with Web technology
W: http://www.knowmad.com | E: william at knowmad.com | P: 704.343.9330
More information about the Petal
mailing list