From: Keats <ke...@xa...> - 2004-05-27 14:07:11
|
Graeme, Mixing and matching classes within the core WM packages probably isn't a good idea. Can you give more details on the original parse exception? It may be that that version of WM didn't support the Map syntax. Try an example without the parameters and see if that works. Good luck, Keats ----- Original Message ----- From: "Graeme J Sweeney" <web...@gj...> To: <web...@li...> Sent: Thursday, May 27, 2004 8:31 AM Subject: [WebMacro-user] Re: #templet no such Macro or Directive error > On Wed, 26 May 2004 Keats wrote: > > > You should be able to use templets with 1.1. Just make sure the classes are > > in your distro and include the following lines in your WebMacro.properties > > file: > > > > Directives.templet: org.webmacro.directive.TempletDirective > > Directives.eval: org.webmacro.directive.EvalDirective > > > > Good luck. > > Thanks. > > #templet works fine. > > A parse exception is thrown for #eval when using: > > #eval $foobar using {"foo": $foo} > > I tried building a jar replacing the parser classes in 1.1 with > those from 2.0 but I then got this exception > > java.lang.NoSuchMethodError: > org.webmacro.engine.VariableBuilder.<init>([Ljava/lang/Object;)V > at > org.webmacro.parser.WMParser_impl.VariableReference(WMParser_impl.java:833) > at > org.webmacro.parser.WMParser_impl.LValue(WMParser_impl.java:542) > at > org.webmacro.parser.WMParser_impl.parse_arg(WMParser_impl.java:231) > at > org.webmacro.parser.WMParser_impl.parse_args(WMParser_impl.java:331) > at > org.webmacro.parser.WMParser_impl.parse_directive(WMParser_impl.java:361) > at > org.webmacro.parser.WMParser_impl.Directive(WMParser_impl.java:1823) > at > org.webmacro.parser.WMParser_impl.WMContent(WMParser_impl.java:1892) > at > org.webmacro.parser.WMParser_impl.WMDocument(WMParser_impl.java:2273) > at org.webmacro.parser.WMParser.parseBlock(WMParser.java:74) > > Any ideas on getting '#eval using' syntax working in 1.1? > > TIA, > > Graeme - > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle 10g. > Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > _______________________________________________ > Webmacro-user mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/webmacro-user > |