FLUID-4293: fluid.stringTemplate multiple token replacement

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. 1.4
Fixed Versions
  1. 1.4
Component
  1. 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