TheProjecter / jxtl

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

Output Escaping #16

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
At some point I need to start thinking about output escaping and how I would 
like to handle it.  Since JXTL is a general purpose language, I don't think I 
would like to build any pre-defined escapes into the language itself.

I think String Template has (as usual) done this correctly by allowing the user 
to write a custom formatter.  I will probably do the same.

Original issue reported on code.google.com by rinehi...@gmail.com on 24 Sep 2010 at 6:09

GoogleCodeExporter commented 8 years ago
Started added the functionality in revision 98.  I think the basic test will be 
to have the command line executable support things really basic, like uppercase 
and lowercase.

Original comment by rinehi...@gmail.com on 26 Sep 2010 at 4:30

GoogleCodeExporter commented 8 years ago
Now implemented in both the jxtl command line process and the Perl interface 
supports it too as of revision 108.

Original comment by rinehi...@gmail.com on 30 Sep 2010 at 3:37

GoogleCodeExporter commented 8 years ago
I want to enhance this a little more.  Right now only the string value is 
passed along with the name of the format.  In addition, it should pass the 
current JSON node so that another template could be expanded inside the format 
function.

The capability to specify multiple formats, or "chaining" them would definitely 
be a desirable feature as well.

Original comment by rinehi...@gmail.com on 1 Oct 2010 at 4:01

GoogleCodeExporter commented 8 years ago
Python now supports having the context node passed to it.  The only thing left 
for formatting is being able to specify multiple formats.

Original comment by rinehi...@gmail.com on 8 Nov 2010 at 2:34