[stringtemplate-interest] Conflict with jQuery's $

Terence Parr parrt at cs.usfca.edu
Sun Jun 15 23:30:56 PDT 2008


hi. try \$ and also can use <...> delimiters :)
Ter
On Jun 16, 2008, at 3:08 AM, Jeyaram Gurusamy wrote:

> Dear All,
>
> I am just starting with StringTemplate. I am afraid that it could  
> have been answered already but I wasn't able to search the  
> newsgroup archives.
>
> ST seems to conflict with jQuery's $. The following code
>
>    $("something").something
>
> throws this error
>
> action parse error in group mainGroup line 0; template context is  
> [context_name]
> line 1:20: unexpected token: .
>     at org.antlr.stringtemplate.language.ActionParser.action 
> (ActionParser.java:143)
>     at org.antlr.stringtemplate.StringTemplate.parseAction 
> (StringTemplate.java:879)
>
> Is it a known problem? Is there a solution to it?
>
> I understand that we shall change jQuery's $ to something else as  
> it is just an alias to jQuery itself. But is there any other  
> solution without touching jQuery's $?
>
>
> Thank you very much for your time.
>
> Regards
> Jeyaram
>
>
> _______________________________________________
> stringtemplate-interest mailing list
> stringtemplate-interest at antlr.org
> http://www.antlr.org:8080/mailman/listinfo/stringtemplate-interest



More information about the stringtemplate-interest mailing list