1 # -*- coding: utf-8 -*-
2 # This file is part of django-ssify, licensed under GNU Affero GPLv3 or later.
3 # Copyright © Fundacja Nowoczesna Polska. See README.md for more information.
6 Implements two-phase rendering using SSI statements.
8 Define reqest-dependent SSI variables to use as template tags
9 with `ssi_variable` decorator.
11 Define views to be cached and included as SSI include
12 with `ssi_included` decorator.
15 from __future__ import unicode_literals
18 __date__ = '2014-08-26'
19 __all__ = ('ssi_expect', 'SsiVariable', 'ssi_included', 'ssi_variable')
21 from django.conf import settings
22 from django.utils.functional import lazy
25 lambda name, default: getattr(settings, name, default),
26 bool, int, list, tuple, str)
28 INCLUDES_CACHES = SETTING('SSIFY_INCLUDES_CACHES', ('ssify',))
29 DEBUG = SETTING('SSIFY_DEBUG', False)
30 DEBUG_VERBOSE = SETTING('SSIFY_DEBUG_VERBOSE', True)
33 from .variables import ssi_expect, SsiVariable
34 from .decorators import ssi_included, ssi_variable