Opened 15 years ago
Closed 15 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: | [email protected]… | |
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.
Note: See
TracTickets for help on using
tickets.
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?