aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/tests/testplugins/modify_context/templates/contextplugin
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2013-05-14 14:24:27 -0500
committerChristopher Allan Webber <cwebber@dustycloud.org>2013-05-14 14:24:27 -0500
commitf7a5c7c78c6dcf3dcb3b81efbedc9a333df49fb7 (patch)
tree7e491dac697f975fbeb9e69c53bd454d7ac108d3 /mediagoblin/tests/testplugins/modify_context/templates/contextplugin
parent725404236ef66884e53e0ef83264524768cefb9c (diff)
downloadmediagoblin-f7a5c7c78c6dcf3dcb3b81efbedc9a333df49fb7.tar.lz
mediagoblin-f7a5c7c78c6dcf3dcb3b81efbedc9a333df49fb7.tar.xz
mediagoblin-f7a5c7c78c6dcf3dcb3b81efbedc9a333df49fb7.zip
Fully working context hooks, both template/view and global level, with tests
Needs documentation though... that's coming next :) This commit sponsored by Luca Tius. Thanks Luca!
Diffstat (limited to 'mediagoblin/tests/testplugins/modify_context/templates/contextplugin')
-rw-r--r--mediagoblin/tests/testplugins/modify_context/templates/contextplugin/general.html4
-rw-r--r--mediagoblin/tests/testplugins/modify_context/templates/contextplugin/specific.html5
2 files changed, 9 insertions, 0 deletions
diff --git a/mediagoblin/tests/testplugins/modify_context/templates/contextplugin/general.html b/mediagoblin/tests/testplugins/modify_context/templates/contextplugin/general.html
new file mode 100644
index 00000000..7b7261c6
--- /dev/null
+++ b/mediagoblin/tests/testplugins/modify_context/templates/contextplugin/general.html
@@ -0,0 +1,4 @@
+General page!
+
+global thing: {{ global_append }}
+lol: {{ lol }}
diff --git a/mediagoblin/tests/testplugins/modify_context/templates/contextplugin/specific.html b/mediagoblin/tests/testplugins/modify_context/templates/contextplugin/specific.html
new file mode 100644
index 00000000..25bea3e2
--- /dev/null
+++ b/mediagoblin/tests/testplugins/modify_context/templates/contextplugin/specific.html
@@ -0,0 +1,5 @@
+Specific page!
+
+specific thing: {{ specific_page_append }}
+global thing: {{ global_append }}
+something: {{ something }}