On Monday 17 September 2007 14:10:53 exhuma.twn wrote:
> Hi,
>
> I want the icons I use in my application to be easily replacable. So I
> put them all in a specific subfolder according to a theme.
>
> So I have a layout similar to this:
>
> static/icons/theme1/*.png
> static/icons/theme2/*.png
> static/icons/theme3/*.png
>
> Now, if I decide to change the theme, I don't want to go through all
> my templates and widgets and change the folder. Instead I would like
> to use a function which accomplishes this.
>
> Where do I need to define this function, and where do I register it? I
> want it to be accessible in all templates the same way as "${tg.url}"
> is globally accessible.
>
> I suppose, this paradigm could then be used for variables as well?http://docs.turbogears.org/1.0/stdvars Diez --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears?hl=en -~----------~----~----~----~------~----~------~--~---

