Ticket #271 (new defect)

Opened 2 months ago

enhanced $.format function

Reported by: mpo Assigned to: mpo
Priority: minor Milestone: 0.5
Component: modules/kauri-forms Version: trunk
Keywords: Cc:

Description

kauri.util.js already holds a $.format('some {0} placeholding {1}.', 'nice', 'string') function to produce nicely formatted strings by filling in placeholders.

On the teamplate side however this function (see http://www.kauriproject.org/docs-0_4/310-kauri/314-kauri.html) can even handle data-formatting of numbers and dates.

We should investigate into getting similar functionality in the client-side javascript.