#!/usr/bin/env python
import warnings as _warnings
_warnings.resetwarnings()
_warnings.filterwarnings('error')
# BEGIN INCLUDE
from tdi import html
content = html.from_string("""
doc title goes here
Intro goes here.
...
""")
menu_widget = html.from_string("""
""")
class Model(object):
def render_menucontainer(self, node):
print "menucontainer"
def render_mymenu(self, node):
print "mymenu"
model = Model()
template = content.overlay(menu_widget)
template.render_string(model)