velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From piero de salvia <>
Subject Re: singleton Velocity engine
Date Wed, 04 Jul 2001 21:43:13 GMT
I can prepend, but...

the second app would have to be a self-contained one,
originally I thought of writing one of those monster
servlets, the ones with Apache's ECS. 

so given one of my customer's websites, I would just
plop the content manager app in a jar under root, the
rendering app in a jar under root, and voila'.

customer gone? pack her templates  + her content, send
her a CD.

I know the answer is still "you can jar and prepend",
but I suppose it comes down to speed.

Also there is another issue. The velocity engine is
extra extra nice for loading other miscellaneous
stuff, like content, sensing when it changes, getting
it from jars, Anakia-ing it etc. The basis for a
content management system.

I would also like to contribute, but I am not sure
about my Java skills.

--- "Geir Magnusson Jr." <> wrote:
> piero de salvia wrote:
> > 
> > Hi Geir,
> > 
> > in reality I did investigate the subject and
> realized
> > I could do that, and I could also prepend/append a
> > string to every template request, indicating a
> > different "application".
> > 
> > reason why i don't want to do that is the apps are
> > really separate. my clients will go to the
> template
> > directory and do their templates directly (like
> with
> > dreamweaver etc.).
> > the other app is a content manager app that takes
> care
> > of content (I know how you guys are fond of MVC so
> I
> > MVC too). If Velocity is singleton, the second
> app's
> > templates will mix up with the customer's
> templates,
> > chances of namespace clashes and so on.
> I guess I would have to see it.  I know some people
> can't work by
> partitioning the templates into different
> directories, one for each app
> for various and sundry reasons.
> However, if the apps are distinct, why can't the
> controller prepend the
> client's directory name for any requests going to
> that client's app?
> > So I hopefully wait. what happens if I un-static
> > everything in source?
> It breaks.  Everything is currently dependant upon
> this.
> -- 
> Geir Magnusson Jr.                          
> System and Software Consulting
> Developing for the web?  See
> You have a genius for suggesting things I've come a
> cropper with!

Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail

View raw message