<s> import morepath <EOL> from . template_engine import FormatLoader <EOL> class App ( morepath . App ) : <EOL> pass <EOL> @ App . path ( path = '<STR_LIT>' ) <EOL> class Person ( object ) : <EOL> def __init__ ( self , name ) : <EOL> self . name = name <EOL> @ App . template_directory ( ) <EOL> def get_template_directory ( ) : <EOL> return '<STR_LIT>' <EOL> @ App . template_loader ( extension = '<STR_LIT>' ) <EOL> def get_template_loader ( template_directories , settings ) : <EOL> return FormatLoader ( template_directories ) <EOL> @ App . template_render ( extension = '<STR_LIT>' ) <EOL> def get_format_render ( loader , name , original_render ) : <EOL> template = loader . get ( name ) <EOL> def render ( content , request ) : <EOL> return original_render ( template . render ( ** content ) , request ) <EOL> return render <EOL> @ App . html ( model = Person , template = '<STR_LIT>' ) <EOL> def person_default ( self , request ) : <EOL> return { '<STR_LIT:name>' : self . name } </s>
