Profile
Achievement
mgeduld's Recent SnippetsTagged template
- All /
« Prev 1 Next »
This simple construct allows you to replace parts of a string with items in a hash table (e.g. and Object).
Example:
var replacements : Object = { SPEED : "slow", ADJECTIVE : "green", VERB: "slithers" };
var template: String = "The %{SPEED}...
0
1119
posted 13 years ago by mgeduld