Line | |
---|
1 | <!-- |
---|
2 | 'view' refers to the MyViewlet class in viewlets.py |
---|
3 | If you do not need anything fancy where python code might help, |
---|
4 | like just a viewlet that displays '<h1>Hello World</h1>', |
---|
5 | then you can remove anything else from this page template, remove |
---|
6 | viewlets.py and change the viewlet registration in configure.zcml: |
---|
7 | replace |
---|
8 | class=".viewlets.MyViewlet" |
---|
9 | with |
---|
10 | template="viewlet.pt" |
---|
11 | --> |
---|
12 | <div tal:content="view/computed_value|nothing"/> |
---|
Note: See
TracBrowser for help on using the repository browser.