I wrote:
I'm using DocumentTemplate from Python (not in Zope) and I want to
use a custom format 'javascript_quote' that I've written.
Kapil Thangavelu wrote:
you should implement a formating function and register it with
special_format.
for examples of both look near the end
Dieter Maurer wrote:
All other "*_quote" features are implemented via *arguments*
(sql_quote, html_quote, url_quote). Why do you want to make
your "javascript_quote" a format? Note, that you may want to
quote a (otherwise) formatted value.
I don't especially want to make it a format
Hamish Lawson wrote:
I'm using DocumentTemplate from Python (not in Zope) and I want to use
a custom format 'javascript_quote' that I've written. In my DTML file I
have:
[snip]
you should implement a formating function and register it with
special_formats
for examples