import morepath
import os
from .template_engine import FormatLoader


class App(morepath.App):
    pass


@App.path(path='{name}')
class Person(object):
    def __init__(self, name):
        self.name = name


@App.template_loader(extension='.unknown')
def get_template_loader(template_directories, settings):
    return FormatLoader(template_directories)


@App.html(model=Person, template='person.unknown')
def person_default(self, request):
    return { 'name': self.name }

import morepath
import os
from .template_engine import FormatLoader


class App(morepath.App):
    pass


@App.path(path='{name}')
class Person(object):
    def __init__(self, name):
        self.name = name


@App.template_loader(extension='.unknown')
def get_template_loader(template_directories, settings):
    return FormatLoader(template_directories)


@App.template_directory()
def get_template_directory():
    return 'templates'


@App.html(model=Person, template='person.unknown')
def person_default(self, request):
    return { 'name': self.name }

Fix so that error under test actually gets triggered.
Fix so that error under test actually gets triggered.
