From: Graeme J S. <web...@gj...> - 2004-05-27 12:34:20
|
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 - |