Hello,

We had the idea of having a template toolkit plugin that returned values
from a given object with css markup applied.

For example this:

[% USE thingstyle = Style(thing) %]
unstyled: [% thing.foo %]
styled: [% thingstyle.foo %]

might print this:

unstyled: beep
styled: <span class="ThingFoo">beep</span>

... where Thing is taken from the class name and Foo is taken from the
method name.

Achievable with a quick AUTOLOAD, but I'm wondering if anyone here has
related ideas, or has done something similar and has experience to
share.

best,

alex

-- 
alex <[EMAIL PROTECTED]>


_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to