On Fri, 22 Nov 2002, Matt Raible wrote:
> Date: Fri, 22 Nov 2002 14:38:02 -0700 > From: Matt Raible <[EMAIL PROTECTED]> > Reply-To: Struts Developers List <[EMAIL PROTECTED]> > To: 'Struts Developers List' <[EMAIL PROTECTED]> > Cc: [EMAIL PROTECTED] > Subject: RE: Velocity vs. JSP: objective tests? > > See comments below... > > > yeah, no offense intended to David Johnson, but that's a > > really poor way to use Velocity. it looks as though that > > method is intended to spit out some HTML hardcoded into > > whatever $macros is or some such thing. the HTML shouldn't > > come from the java, it should be in the template to begin > > with, or at least defined the global Velocimacro library. > > that way the code could just be: > > > > #showNavBar( true) > > > > anyway, i hope i'm not coming off too argumentative, it's > > just that these are poor examples of using velocity. i > > wouldn't want people to get the wrong idea. :) > > As I am a committer on the Roller project - I'm curious to know what a > better way of implementing this would be. We do want Roller to be a > best-practices examples - so any advice is appreciated! > It would also be an interesting experiment to see how people would approach this with JSP (and probably using Tiles for the standard layout stuff). > Thanks, > > Matt > Craig -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>