On Thu, 2004-11-04 at 19:17 -0500, Scott Palmer wrote:
> On Nov 4, 2004, at 6:27 PM, Daniel Rall wrote:
> 
> > You can get a # character to render literally in your output by
> > backslash escaping it (e.g. \#), or in VTL code, by quoting it (e.g.
> > '#').
> >
> 
> No, the backslash escaping does not work.
> 
> I have a method that takes integers
> 
> $foo.blah(0)  would output "something"
> 
> I wanted to put that processing instruction literally in the output as 
> well so I could process the template and have the output show the 
> command syntax and what it generated.  So i tried
> \$foo.blah(\#)   to show that the method takes a number.
> The output was not what I expected for all combinations off 
> backslashing or not.
> I will try the quotes.

I'm very surprised to hear that \$foo.blah(\#) did not render as
$foo.blah(#).  I'd call that a bug.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to