Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/creactiweb/_templates/lib/werkzeug/debug/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'creactiweb/_templates/lib/werkzeug/debug/utils.py')
-rw-r--r--creactiweb/_templates/lib/werkzeug/debug/utils.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/creactiweb/_templates/lib/werkzeug/debug/utils.py b/creactiweb/_templates/lib/werkzeug/debug/utils.py
new file mode 100644
index 0000000..6e479e4
--- /dev/null
+++ b/creactiweb/_templates/lib/werkzeug/debug/utils.py
@@ -0,0 +1,20 @@
+# -*- coding: utf-8 -*-
+"""
+ werkzeug.debug.utils
+ ~~~~~~~~~~~~~~~~~~~~
+
+ Various other utilities.
+
+ :copyright: (c) 2010 by the Werkzeug Team, see AUTHORS for more details.
+ :license: BSD.
+"""
+from os.path import join, dirname
+from werkzeug.templates import Template
+
+
+def get_template(filename):
+ return Template.from_file(join(dirname(__file__), 'templates', filename))
+
+
+def render_template(template_filename, **context):
+ return get_template(template_filename).render(**context)