Re: Diazo overhead?

Steve McMahon <[email protected]>
Newsgroups gmane.comp.web.zope.plone.user
Message-ID <CAOqzbggH7uz=sr4u+ZhpeFiH3rsokO4_ORANx=humT20AitDJA@mail.gmail.com>
I completely agree with Johannes. The trick to avoiding misery is being
versatile and fixing things in the right places. The ability to fix a view
or viewlet template via jbot can save a lot of tedious rulemaking in Diazo.

By the way, folks, those "css:..." selectors usually get translated to
"//..." XPath expressions.

On Thu, Nov 6, 2014 at 5:49 AM, Johannes Raggam <[email protected]> wrote:

> I've seen a theme completely built with large sets of XSLT rules in
> Diazo and no modifications in templates. Besides being unmaintainable
> (rules are bound to both the Diazo template markup and the content
> markup), was also was very slow. Probably there were a lot of "search
> anywhere in the document" xpath queries.
>
> I love Diazo, but you have to make find the threshold where to do
> modifications in page templates rather than in Diazo. My rule of thumb
> is to use page template modifications (custom views bound to a browser
> layer or overrides via jbot) for most of the templates/views which are
> rendered in one of the columns of Plone (main content column, portlet
> columns, footer). This way, my ruleset is always quite simple but
> designers are still able to play around.
>
> johannes
>
> On Thu, 2014-11-06 at 13:25 +0000, Martin Aspeli wrote:
> >
> >
> > On 6 November 2014 11:36, Daniel Jowett <[email protected]>
> > wrote:
> >         I think there was some mention at the conference of an
> >         overhead
> >         from using "*" in some Diazo rules.  Would anyone care to
> >         expand on that
> >
> >
> >
> > Using * or Xpath expressions beginning with // (sometimes/usually)
> > means "search anywhere in the document". So that can be slow because
> > it has to look everywhere. More precise expressions are faster because
> > you're giving the parser more information about where to look.
> >
> >
> > Martin
> >
> ------------------------------------------------------------------------------
> > _______________________________________________
> > Plone-Users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/plone-users
>
> --
> programmatic  web development
> di(fh) johannes raggam / thet
> python plone zope development
> plone framework  team  member
> mail: office-//[email protected]
> web:  http://programmatic.pro
>       http://bluedynamics.com
>
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Plone-Users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/plone-users
>
>

------------------------------------------------------------------------------

_______________________________________________
Plone-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plone-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.