[OpenLayers-Trac] [OpenLayers] #1133: Format a string given a string template and some context.
OpenLayers
trac at openlayers.org
Fri Nov 9 14:28:29 EST 2007
#1133: Format a string given a string template and some context.
---------------------+------------------------------------------------------
Reporter: tschaub | Owner:
Type: feature | Status: new
Priority: minor | Milestone: 2.6 Release
Component: general | Version: 2.5
Keywords: |
---------------------+------------------------------------------------------
Sounds like the SLD and text label work could use some string templating.
How about an OpenLayers.String.format function?
This function could have a signature like:
{{{
/*{String}*/ OpenLayers.String.format(/*{String}*/ template, /*{Object}*/
context);
}}}
No idea if this addresses all needs, but I'll attach a proposed patch.
--
Ticket URL: <http://trac.openlayers.org/ticket/1133>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list