From: Marc P. <ma...@an...> - 2005-03-11 15:59:11
|
> > Two questions:- > > 1. what package did you put your StringTemplateLoader class into? package org.webmacro.resource; ...I have an orthogonal source tree for my framework WebMacro Ignition, which was/will probably still be open source and this stuff is in the non-Ignition specific packages of stuff that will work with WM standalone... > 2. what was in the WebMacro template that threw the error? #include "pagebegin.wm" <p> #foreach $contentItem in $content #if ($contentItem.View) #include "views/$(contentItem.View).wm" #else #if ($contentItem.ContentType = "text/html") <div> <h1>$contentItem.Description</h1> #include as template "string:$contentItem.Data" </div> #end #end #end </p> #include "pageend.wm" The String returned by $contentItem.Data is the text to use as the template, i.e. "<p>Hello, $name</p>" Cheers -- Marc Palmer - - - wj...@wa... Wangjammers, J2ME Developers ~ http://www.wangjammers.org/games/ Blog ~ http://www.jroller.com/page/Wangjammer5 |