Skip to content

Commit

Permalink
tweaks to run live
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Lovell-Troy committed Feb 18, 2014
1 parent ed4a2a0 commit f81c3cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions classy_mail/template.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
TemplateEncodingError,
)
from django.template.loader import make_origin
from django.template.loaders.filesystem import Loader as FilesystemLoader
from django.template.loaders.app_directories import Loader as AppDirectoriesLoader
from markdown import markdown
import yaml
#from BeautifulSoup import BeautifulSoup
Expand All @@ -20,7 +20,7 @@ def __init__(self, template_string, origin=None, name=None):
self.frontmatter = context
try:
template_string = markdown(template_string)
super(Template, self).__init__(
super(MarkdownTemplate, self).__init__(
template_string,
origin=origin,
name=name
Expand All @@ -30,7 +30,7 @@ def __init__(self, template_string, origin=None, name=None):
"from unicode or UTF-8 strings.")


class MarkdownTemplateLoader(FilesystemLoader):
class MarkdownTemplateLoader(AppDirectoriesLoader):

def load_template(self, template_name, template_dirs=None):
source, display_name = self.load_template_source(template_name,
Expand Down

0 comments on commit f81c3cc

Please # to comment.