simple.rtl   [plain text]


# For this to work:
# Configure your web server with 
# --process=.rtl=twisted.web.script.ResourceTemplate
# And make sure quixote is installed on your Python path.
from twisted.web.resource import Resource


class ExampleResource(Resource):

    def render_GET(self, request):
        """\
<HTML>
    <HEAD><TITLE> Welcome To Twisted Python </title></head>

    <BODY><ul>"""
        for i in range(10):
            '<LI>';i
        """</ul></body>
</html>"""


resource = ExampleResource()