From: Steve <unetright.thebas...@xoxy.net>
Date: Sat, 6 Jun 2009 08:31:17 -0700 (PDT)
Local: Sat, Jun 6 2009 11:31 am
Subject: Re: pyTenjin Feature Requests
Makoto,
> > <html>
I have confirmed in my template that the above does work, and thank
> > <body> > > <ul> > > <?py if items: ?> > > <?py for item in items: ?> > > <li>#{item}</li> > > <?py #endfor ?> > > <?py #endif ?> > > </ul> > > </body> > > </html> > Yes, you can write in this style. There is no problem.
you. This get's me 80% of what I was looking for. Is there anyway your subclass technique might be modified to support the following: <html>
Notice in this example that bool2 and bool3 conditionals appear and
> > My only concern is that some
You are correct I profiled my same template taking advantage of both
> > of the processing required to support #{@var} and the arbitrary > > initial indentation of <?py ?> statemen > Very little. Don't worry.
the more flexible <?py ?> indentation and the @var expansion. This uncached case showed approximately 1000 more function calls but the resulting time increase was almost negligible. You are correct that the additional cost would only be applicable when
One other small note. In an earlier post I said I thought I could
Thank you again for all your help,
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||