On Wed, 19 Jul 2000, Jason van Zyl wrote:

> Hi,
> 
> Can I have many WebMacro templates map to a single
> Java class?
> 
> I'm working with a group of designers, and I'd like
> them to be able to make their own templates, linking
> them to one another without me having to make
> a class for each one. I want to make a single class
> that will handle a given set of macros for all
> templates.
> 
> TIA,
> 
> jvz.
> 

I have a Default.java working now, is there a way
that you could specify a particular mapping? I'm
working with 4 designers and another programmer.
We have 10 primary sections to the site we're trying
to build so is it possible to map, say, all the
templates for a particular section to a single class?

Maybe build a mapping with an XML file possibly, or
if you prefixed the WM template with the section name:

ChemistryOrganic.wm   --> Chemistry.java
ChemistryInorganic.wm --> Chemistry.java

PhysicsOptics.wm      --> Physics.java
PhysicsMechanics.wm   --> Physics.java

There's just a lot of overlap in the information,
so I'd just like to build up the context in a
single place. There would obviously info that's
mutually exclusive between templates but I can
live with that. I just think it would be easier
for the designers to build up the site and have
access to a lot of the base information that would
be present in the Java class for a particular
section. Whereas a Default.class wouldn't really
do the trick.

The designers could just play around with a bunch
of different templates with the same prefix and
still have access to the info with me having
to make class for an indivdual template.

Does anyone else thinks this makes sense?

jvz.


-- 

Jason van Zyl
[EMAIL PROTECTED]



------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to