[Seaside] Templates

Derek Brans brans at nerdonawire.com
Wed May 28 09:20:12 CEST 2003


I've been doing templates in the following way:

I post an html document (the template) at a url somewhere on the web.

In Seaside there is a component class, a subclass of WATemplate,  that knows the url of that particular html template.

When the class initializes, it fetches the html template and parses it: I have tags like "seaside-mainContent" and "seaside-title" and "seaside-messagebox" that get replaced by components.  Where the mapping of tags-to-components occurs is arbitrary.

Anytime I change the template in Dreamweaver, I upload the template and I re-initialize my seaside template class to fetch the changes.

This system is simple and useful (I have used it on two different projects).  I wonder if with some intelligent design modifications it could be a useful to others?

Derek Brans
Nerd on a Wire
Web design that's anything but square
http://www.nerdonawire.com 
mailto: brans at nerdonawire.com
phone: 604.874.6463
toll-free: 1-877-NERD-ON-A-WIRE
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20030528/6f4a283b/attachment.htm


More information about the Seaside mailing list