[ 
https://issues.apache.org/jira/browse/VELOCITY-891?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16493809#comment-16493809
 ] 

Michael Osipov commented on VELOCITY-891:
-----------------------------------------

Show the stack trace please.

> Upgrade to v2.0 causes parser failures
> --------------------------------------
>
>                 Key: VELOCITY-891
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-891
>             Project: Velocity
>          Issue Type: Bug
>          Components: Engine
>    Affects Versions: 2.0
>            Reporter: Steve O'Hara
>            Priority: Major
>
> We are upgrading from v1.7 to v2.0 but have come across a problem almost 
> immediately.
> Our templates can contain a lot of Javascript with references to things that 
> begin with the '#' character e.g. Kendo JS templates. These used to be 
> ignored by 1.7 but now they are causing parser failures as follows;
> {{#set ($JQId = "#" + $Utils.getJQuerySelector($SparklineElementId))}}
> {{org.apache.velocity.exception.ParseErrorException: Failed to parse String 
> literal}}
> It is complaining about the \{{"#"}}
> I can't find any directive that switches this off or a way to circumvent it.
> A workaround is to replace the '#' with {{$HASH}} but we have thousands of 
> these and no way of fixing the end-user commited templates.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@velocity.apache.org
For additional commands, e-mail: dev-h...@velocity.apache.org

Reply via email to