commit c2c02a9a965373fd61af1b388ed9ede8ef1eca87 parent 70629b7b9f7c7b8db774aae82bab94ae9fbeade6 Author: Dan Callaghan <djc@djc.id.au> Date: Wed, 3 Dec 2008 17:56:03 +1000 moved html templates to their own subdir --HG-- rename : templates/BlogEntry.xml => templates/html/BlogEntry.xml rename : templates/ReadingLogEntry.xml => templates/html/ReadingLogEntry.xml rename : templates/_commonwrapper.xml => templates/html/_commonwrapper.xml rename : templates/_fragments.xml => templates/html/_fragments.xml rename : templates/multiple.xml => templates/html/multiple.xml rename : templates/single.xml => templates/html/single.xml Diffstat:
8 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app.py b/app.py @@ -67,7 +67,7 @@ class Constance(object): raise exc.HTTPNotFound().exception def render_single(self, item): - template = template_loader.load('single.xml') + template = template_loader.load('html/single.xml') rendered = template.generate( config=self.config, item=item @@ -79,7 +79,7 @@ class Constance(object): offset = int(self.req.GET.get('offset', 0)) except ValueError: raise exc.HTTPBadRequest('Invalid offset %r' % self.GET['offset']).exception - template = template_loader.load('multiple.xml') + template = template_loader.load('html/multiple.xml') rendered = template.generate( config=self.config, items=items, diff --git a/itemtypes.py b/itemtypes.py @@ -89,7 +89,7 @@ class BlogEntry(object): def render(self, format): if format == 'text/html': - template = template_loader.load(self.__class__.__name__ + '.xml') + template = template_loader.load('html/' + self.__class__.__name__ + '.xml') return template.generate(item=self) else: raise UnsupportedFormatError(format) @@ -157,7 +157,7 @@ class ReadingLogEntry(object): def render(self, format): if format == 'text/html': - template = template_loader.load(self.__class__.__name__ + '.xml') + template = template_loader.load('html/' + self.__class__.__name__ + '.xml') return template.generate(item=self) else: raise UnsupportedFormatError(format) diff --git a/templates/BlogEntry.xml b/templates/html/BlogEntry.xml diff --git a/templates/ReadingLogEntry.xml b/templates/html/ReadingLogEntry.xml diff --git a/templates/_commonwrapper.xml b/templates/html/_commonwrapper.xml diff --git a/templates/_fragments.xml b/templates/html/_fragments.xml diff --git a/templates/multiple.xml b/templates/html/multiple.xml diff --git a/templates/single.xml b/templates/html/single.xml