Re: Xaraya_Classic theme menu blocks logic
Andy Varganov <[email protected]> Tue, 04 May 2004 11:15:19 +0100
| Newsgroups | gmane.comp.cms.xaraya.ui |
|---|---|
| Organization | xaraya org |
| Message-ID | <[email protected]> |
Fournier Daniel wrote:
> However, I don't think this extra markup will make a noticeable latency
> on the client side.
no, in practice it wont.. however, serving clients 'empty' structures, like the
table cells in your example, is a big NO-NO in my books :) that's why i
completely re-wrote the 1st version of xaraya_classic (see early 0.9+ releases
for comparison) in order to achieve the 'cleanest possible' output.
> For instance, if I have no left menu, I get this line (<head/> child):
> <style>td#leftmenus { display:none; }</style>
i suspect you're after a dynamic css but we simply dont have a 'nice' official
solution for it in xaraya yet.. although it doesnt stop you from experimenting.
> These 3 uneeded elements to parse on client side are nothing compared to
> the tens of elements to be parsed on server side to decide what is the
> exact output.
not sure i could see the problem on the server side - template is compiled
before it's served to a client, there is nothing extra to parse. The logic is as
follows: no content -> no output -> no unnecessary structures to fly about and
pollute clients rendering engines.
> But the main benefice is clearly in the template readability: no
> duplication of code, which is always error prone when you want to modify
> something.
see above, at this stage i'd care much more about the structure of output than
about the structure of template, but i'm not arguing that having both sorted out
would be nice too :)
Andy