mirror of https://github.com/estheruary/subjugate
Formatting
parent
d5488a2fda
commit
f177a659de
@ -1,14 +1,15 @@
|
|||||||
from subjugate.template.engine import GenericEngine
|
from subjugate.template.engine import GenericEngine
|
||||||
from subjugate.template import SubjugateTemplate
|
from subjugate.template import SubjugateTemplate
|
||||||
|
|
||||||
|
|
||||||
class SubjugateTemplates(GenericEngine):
|
class SubjugateTemplates(GenericEngine):
|
||||||
template_cls = SubjugateTemplate
|
template_cls = SubjugateTemplate
|
||||||
app_dirname = "subjugate"
|
app_dirname = "subjugate"
|
||||||
|
|
||||||
def __init__(self, params):
|
def __init__(self, params):
|
||||||
params = params.copy()
|
params = params.copy()
|
||||||
self.dirs = list(params.pop('DIRS')) or []
|
self.dirs = list(params.pop("DIRS")) or []
|
||||||
self.app_dirs = bool(params.pop('APP_DIRS'))
|
self.app_dirs = bool(params.pop("APP_DIRS"))
|
||||||
options = params.pop('OPTIONS')
|
options = params.pop("OPTIONS")
|
||||||
|
|
||||||
super().__init__(self.dirs, self.app_dirs, **options)
|
super().__init__(self.dirs, self.app_dirs, **options)
|
||||||
|
Loading…
Reference in New Issue