cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Uli Mayring <u...@denic.de>
Subject RE: clean-page model (was: 64K Limit)
Date Fri, 01 Sep 2000 20:45:57 GMT
On Fri, 1 Sep 2000, Ed Staub wrote:

> What's the "clean-page" model?  Does it mean scrupulously pushing logic
> back
> into taglibs?

No, that would be the taglib-model. Look at the clean-page.xml and
lib-page.xml in the xsp samples. Basically, they look like this:

clean-page:
<myfunctionality/>

lib-page:
<mytaglib:myfunctionality/>


I am not entirely sure which model is "better" or if that perhaps depends
on the scenario. The main difference is that the clean pages are pure XML,
whereas the lib pages are always XSP pages. So the lib-page model mixes
logic and content like in ASP or ColdFusion - but at least you have the
source (i.e. you write your own taglibs). The clean-page model is pure
content, functionality comes into it in its stylesheet, which can generate
a dynamic XSP page.

Now, the difference may be esoteric in the real world. After all, when you
look at the above examples it seems the only difference is in syntax. But
there are some subtle consequences stemming from the use of either model.

Ulrich

-- 
Ulrich Mayring
DENIC eG, Softwareentwicklung


Mime
View raw message