Opened 12 years ago

Closed 12 years ago

#4089 closed enhancement (wontfix)

dojo.string.substitute should support wildcard

Reported by: guest Owned by: anonymous
Priority: high Milestone:
Component: General Version: 0.9
Keywords: Cc: jayant.b.sai@…
Blocked By: Blocking:

Description

It would be great if dojo.string.substitute would support some sort of wild card support. For example, dojo.string.substitute("${*}", { key1:value1, key2:value2 }); could return key1 = value1, key2 = value2.

If a user wants to change the separator ',' to something else, say '<br />', they can always use the transform parameter/argument to the substitute function.

Change History (1)

comment:1 Changed 12 years ago by Adam Peller

Resolution: wontfix
Status: newclosed

This would seem to add a lot of code and complexity to the method, and I'm not sure I see the use case. Why wouldn't the example above be implemented by constructing a string in a for-loop?

Note: See TracTickets for help on using tickets.