[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cgiapp] Re: directory structure and static pages


>> Cascade home page: http://summersault.com/software/cascade/
>
> Looked too complex for me.  ;-)

It's getting too complex for me as well. :) I'm ready to rewrite 
with better style, which I expect will involve making it simpler
and easier to understand and work with.

> Well, that was my first project with it, yes.  Part of my problem is
> that my pages refer to each other, and that's hard to do when sometimes
> they should refer to "dynamic" pages (e.g.
> "http://my.domain.net/app.cgi?rm=mode1";) vs "static" pages (e.g.
> "http://my.domain.net/mode1.html";)  I'd like to figure out a good way
> to do this, but it hasn't hit me yet.

I handled this in Cascade using OO. I pass a "mode" argument to the
object constructor than can be 'dynamic' or 'static'. After that,
The object methods will produce links of the appropriate type.

The Cascade implementation is a little messy, but the general idea may
work for you.

	Mark

-- 
http://mark.stosberg.com/ 


---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/suppressed/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.