From: makoto kuwata <kwa...@gmail.com>
Date: Sat, 6 Jun 2009 20:18:57 -0700 (PDT)
Local: Sat, Jun 6 2009 11:18 pm
Subject: Re: pyTenjin Feature Requests
On 2009-06-07 12:31, Steve <unetright.thebas...@xoxy.net> wrote:
> Is there anyway
Here you are:
> your subclass technique might be modified to support the following: (...snip...) > Notice in this example that bool2 and bool3 conditionals appear and > different indentations because of the structure of the html. But in > python, they must appear at equal indentation levels. Is there any > way to handle that? main.py:
import tenjin # 0.7.0 or 0.8.0
class MyTemplate(tenjin.Template):
def add_stmt(self, buf, code):
if __name__ == '__main__':
ex.pyhtml:
<html>
result:
$ python main.py
You can see that dummy if-statement is inserted before
I hope this helps you.
--
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.
| ||||||||||||||