Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <%
- a = context["a"]
- b = [1,2,3,4,5,6,7,8,9]
- def test():
- return "Hello world function"
- %>
- <%def name="abc()">
- Hello world tag
- </%def>
- <html>
- <head>
- </head>
- <body>
- a has value: ${a} <br/>
- Function call: ${test()} <br/>
- Tag call: ${abc()} <br/>
- this is some <b>html</b> text <br/>
- % for i in b:
- ${i}\
- % endfor
- </body>
- </html>
Add Comment
Please, Sign In to add comment