If you need $Id in both the template and the generated file, my proposed
solution won't work. But is it worth versionning generated files?

About letting $ as the last character, I think it can work. You
responded yourself :-)


  Claude

Le mercredi 20 février 2008 à 18:58 -0800, nodje a écrit :
> NB: escape character works, but if you escape both $ like this: \$Id .... \$,
> SVN won't recognize it's keyword anymore.
> 
> Escaping the first one only works with SVN. 
> How would Velocity interpret a single $ character without any string
> following?
> 
> 
> nodje wrote:
> > 
> > I'm using Velocity to render HTML pages.
> > I have a SVN $Id$ keyword in each Velocity template.
> > I'd like to have this one render into the HTML result, so that I can see
> > which file version I'm looking at in a browser. Something like <!-- $Id
> > ..... $ -->
> > 
> > However, if I put it like this in the Velocity template, $Id will be
> > interpreted as a variable and Velocity will report an error. 
> > Usage of Velocity comments works of course, but are not rendered in the
> > resulting page.
> > 
> > So is there any way to tell Velocity not to interpret $id ???'
> > 
> > cheers,
> > --nodje
> > 
> 


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

Reply via email to