On Thu, 20 Jul 2000, Leon Messerschmidt wrote:

> Hi Jason,
> 
> > 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
> 
> You can use inheritance to achieve the same goal.  For example you will have Physics 
>as a
> base class and PhysicsOptics and PhysicsMechanics are derived from Physics.  Changes 
>to
> the Physics base class will affect all your screens.  Better still - you can add all 
>the
> shared information in Physics and mutual exclusive information can sit in each 
>derived
> class.  This way you get the best of both worlds:  each class has it's own screen 
>specific
> data but the global data is always available.

I've incorporated your idea here, with John McNally's earlier
suggestion of using a Default.class for each section on the site.
So all PhysicsXXX.wm templates will default to ...screens.physics.Default
and I'll subclass the Default.class for each section when I need
more specific info.

Thanks!

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