summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Jerdonek <chris.jerdonek@gmail.com>2012-03-29 01:05:11 -0700
committerChris Jerdonek <chris.jerdonek@gmail.com>2012-03-29 01:05:11 -0700
commitcab8528f0ab06513a35dbb635b68b0d509c18e44 (patch)
tree99116577eabc655053e74bafcd6bcb1613484e44
parented2c5521ec33bdad720d53dcaf41c1a19a276490 (diff)
downloadpystache-cab8528f0ab06513a35dbb635b68b0d509c18e44.tar.gz
Renamed custom_template.Loader to CustomLoader.
-rw-r--r--pystache/custom_template.py7
-rw-r--r--tests/test_custom_template.py2
2 files changed, 4 insertions, 5 deletions
diff --git a/pystache/custom_template.py b/pystache/custom_template.py
index 3b51c28..53d46f5 100644
--- a/pystache/custom_template.py
+++ b/pystache/custom_template.py
@@ -8,9 +8,8 @@ This module supports specifying custom template information per view.
import os.path
from .context import Context
+from .loader import Loader
from .locator import Locator as TemplateLocator
-# TODO: remove this alias.
-from pystache.loader import Loader as Reader
from .renderer import Renderer
@@ -121,7 +120,7 @@ class View(CustomizedTemplate):
return renderer.render(template, self.context)
-class Loader(object):
+class CustomLoader(object):
"""
Supports loading a custom-specified template.
@@ -133,7 +132,7 @@ class Loader(object):
locator = TemplateLocator()
if reader is None:
- reader = Reader()
+ reader = Loader()
if search_dirs is None:
search_dirs = []
diff --git a/tests/test_custom_template.py b/tests/test_custom_template.py
index 2cf0abe..2c1a714 100644
--- a/tests/test_custom_template.py
+++ b/tests/test_custom_template.py
@@ -16,7 +16,7 @@ from examples.inverted import Inverted, InvertedLists
from pystache import CustomizedTemplate as Template
from pystache import Renderer
from pystache import View
-from pystache.custom_template import Loader as CustomLoader
+from pystache.custom_template import CustomLoader
from pystache.locator import Locator
# TODO: remove this alias.
from pystache.loader import Loader as Reader