emberfeather / cf-compendium

Other
1 stars 0 forks source link

Format Component #52

Closed Zoramite closed 13 years ago

Zoramite commented 13 years ago

Component to allow for formatting a value with a given format and options.

When the format() is called the component will check for formatters that have been added (LIFO) and find the specific format requested. If no formatter is found the original value will be returned.

Any options provided can be used by the formatter to format the value. For example, a date mask could be provided to change the date format.

Zoramite commented 13 years ago

Added a format handler for being able to add custom formatters and control the format using options.

Closed by 56054f33adf1444ecd9bcec1d4a9efafdeaed161