Testing the template_context_prerender hook
authorChristopher Allan Webber <cwebber@dustycloud.org>
Wed, 15 May 2013 16:40:28 +0000 (11:40 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Wed, 15 May 2013 16:40:28 +0000 (11:40 -0500)
commita1099bba79077c1258e586e2e2cbfe0094f10118
treebf813a8ab2c5cb6f0110d4ba7f15d48a31313490
parent38ebd05d1a759c3a057ab041124c313cf5724dc4
Testing the template_context_prerender hook

This allows for modifying any context *right before render*, including
access to the variables that are passed in.  This test takes advantage
of that and takes one of the variables, "doubleme", and modifies
it (doubles it!)

In our case it turns "happy" and "joy" into "happyhappy" and "joyjoy".

This commit sponsored by Mark Holmquist.  Thank you!
mediagoblin/tests/test_pluginapi.py
mediagoblin/tests/testplugins/modify_context/__init__.py
mediagoblin/tests/testplugins/modify_context/templates/contextplugin/general.html
mediagoblin/tests/testplugins/modify_context/templates/contextplugin/specific.html
mediagoblin/tests/testplugins/modify_context/views.py