Metadata
- Source
- FLUID-4293
- Type
- Improvement
- Priority
- Major
- Status
- Closed
- Resolution
- Fixed
- Assignee
- Justin Obara
- Reporter
- lahabana
- Created
2011-06-17T04:47:33.810-0400 - Updated
2014-03-03T13:07:03.912-0500 - Versions
-
- 1.4
- Fixed Versions
-
- 1.4
- Component
-
- Framework
Description
fluid.stringTemplate doesn't do multiple token replacement that is a lack that should be solved.
For example:
fluid.stringTemplate("%token %token", {token: "test"});
is replaced by:
"test %token"
however, "test test" would be a more logical result.
The code of fluid.stringTemplate is her:
https://github.com/fluid-project/infusion/blob/master/src/webapp/framework/core/js/Fluid.js#L1715-1722
Environments
any
Comments
-
lahabana commented
2011-06-17T04:53:20.298-0400 here is a correction of the issue:
https://github.com/lahabana/infusion/blob/master/src/webapp/framework/core/js/Fluid.js#L1715-1726 -
Antranig Basman commented
2013-05-22T00:22:47.478-0400 This has been corrected some time ago in trunk and has test cases