This repository has been archived by the owner on Aug 17, 2023. It is now read-only.
forked from jessemiller/HamlPy
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make hamlpy module a Django app which can be loaded to ensure that te…
…mplatize is patched
- Loading branch information
1 parent
994eae4
commit 87ffdcf
Showing
5 changed files
with
35 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,18 @@ | ||
from __future__ import unicode_literals | ||
|
||
__version__ = '1.0.1' | ||
from django.apps import AppConfig | ||
|
||
__version__ = '1.0.1' | ||
|
||
HAML_EXTENSIONS = ('haml', 'hamlpy') | ||
|
||
|
||
class Config(AppConfig): | ||
name = 'hamlpy' | ||
|
||
def ready(self): | ||
# patch Django's templatize method | ||
from .template import templatize # noqa | ||
|
||
|
||
default_app_config = 'hamlpy.Config' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
from __future__ import unicode_literals | ||
|
||
# load templatize module to patch Django's templatize function | ||
from . import templatize # noqa | ||
|
||
from .loaders import haml_loaders as _loaders | ||
|
||
|
||
locals().update(_loaders) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters