File: hellohtml.py

package info (click to toggle)
nevow 0.10.0-4
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 3,280 kB
  • sloc: python: 21,511; ansic: 136; sh: 65; xml: 42; makefile: 31; sql: 5
file content (12 lines) | stat: -rw-r--r-- 270 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
from twisted.python import util

from nevow import loaders
from nevow import rend


class Page(rend.Page):
    """Example of using an HTML template to render a page.
    """
    addSlash = True
    docFactory = loaders.xmlfile(util.sibpath(__file__, 'hellohtml.html'))