You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Benson Margulies <bi...@gmail.com> on 2014/04/14 13:46:57 UTC

Velocity escaping; I can't escape

If a markdown file in my site contains

 <lib path="${bt.root.directory:../../../../..}/lib/rbl-je-lucene-solr-43-2.2.104.jar"/>

velocity explodes.

If I add a \ after the $, it does not explode, but the \ remains in
the generated HTML.

How do I get out of this?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Velocity escaping; I can't escape

Posted by Stephen Connolly <st...@gmail.com>.
could you use a CDATA section?


On 14 April 2014 12:46, Benson Margulies <bi...@gmail.com> wrote:

> If a markdown file in my site contains
>
>  <lib
> path="${bt.root.directory:../../../../..}/lib/rbl-je-lucene-solr-43-2.2.104.jar"/>
>
> velocity explodes.
>
> If I add a \ after the $, it does not explode, but the \ remains in
> the generated HTML.
>
> How do I get out of this?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: Velocity escaping; I can't escape

Posted by Benson Margulies <bi...@gmail.com>.
On Mon, Apr 14, 2014 at 7:56 AM, Thomas Broyer <t....@gmail.com> wrote:
> #set( $dollar = '$' )

Sure Enough, that does it. There's some doc that could be improved in
the velocity site :-), also some plain misinformation in the
maven-site-plugin doc.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Velocity escaping; I can't escape

Posted by Jason Tesser <ja...@gmail.com>.
Also there is an Escape Viewtool

So $esc.d  will work http://dotcms.com/docs/latest/EscapeTool


On Mon, Apr 14, 2014 at 7:56 AM, Thomas Broyer <t....@gmail.com> wrote:

> Assuming I understand the issue correctly:
>
> #set( $dollar = '$' )
>
> then ${dollar}{bt.root.directory:../../../../..}
>
>
> On Mon, Apr 14, 2014 at 1:46 PM, Benson Margulies <bimargulies@gmail.com
> >wrote:
>
> > If a markdown file in my site contains
> >
> >  <lib
> >
> path="${bt.root.directory:../../../../..}/lib/rbl-je-lucene-solr-43-2.2.104.jar"/>
> >
> > velocity explodes.
> >
> > If I add a \ after the $, it does not explode, but the \ remains in
> > the generated HTML.
> >
> > How do I get out of this?
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
>
> --
> Thomas Broyer
> /tɔ.ma.bʁwa.je/ <http://xn--nna.ma.xn--bwa-xxb.je/> <
> http://xn--nna.ma.xn--bwa-xxb.je/>
>

Re: Velocity escaping; I can't escape

Posted by Thomas Broyer <t....@gmail.com>.
Assuming I understand the issue correctly:

#set( $dollar = '$' )

then ${dollar}{bt.root.directory:../../../../..}


On Mon, Apr 14, 2014 at 1:46 PM, Benson Margulies <bi...@gmail.com>wrote:

> If a markdown file in my site contains
>
>  <lib
> path="${bt.root.directory:../../../../..}/lib/rbl-je-lucene-solr-43-2.2.104.jar"/>
>
> velocity explodes.
>
> If I add a \ after the $, it does not explode, but the \ remains in
> the generated HTML.
>
> How do I get out of this?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


-- 
Thomas Broyer
/tɔ.ma.bʁwa.je/ <http://xn--nna.ma.xn--bwa-xxb.je/>