TheProjecter / jxtl

Automatically exported from code.google.com/p/jxtl
Apache License 2.0
0 stars 0 forks source link

Change to Format Functions #25

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I do not like the way format callbacks are currently handled.  Instead of 
having just one format callback, you should register different formatters.  The 
register call would take the name of a format and a function to call.  This 
method ultimately allows for greater code reuse in scripting languages.  

This change would also mean that unregistered formats could be ignored and the 
template processor could optionally output a warning for unregistered formats.

Original issue reported on code.google.com by rinehi...@gmail.com on 30 Jan 2011 at 4:00

GoogleCodeExporter commented 8 years ago
Completed in revison 179.

Original comment by rinehi...@gmail.com on 12 Feb 2011 at 6:08