smoothcontract / mediate

Automatically exported from code.google.com/p/mediate
0 stars 0 forks source link

Implement token support for metadata values #185

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
This could be reworked within weather plugin so that we don't need to define 
lots of
bitmaps and then setstyle - instead we can just set some metadata properties for
the various weather images with URL's - may need some syntax to specify theme
directory, weather resources etc. Maybe use $folder$, %THEME% notation or 
something
similar? Or.. we could expose theme folder through plugin API? Using symbols for
notation could be useful for other applications too...

Alternatively could define another metadata value with theme path and then use 
existing expression 
support within metadata to expand the token. Only real issue is the the syntax 
is a bit klunky.. 
maybe consider deprecating our current syntax for something simpler?

A third option would be to simply get the value of the theme metadata value 
inside the weather 
plugin, then prepend this to all of the image url metadata values 
programatically.

Original issue reported on code.google.com by aretman...@gmail.com on 25 Feb 2009 at 10:21