diff --git a/applications/examples/controllers/cache_examples.py b/applications/examples/controllers/cache_examples.py index 857833d5..33c9e447 100644 --- a/applications/examples/controllers/cache_examples.py +++ b/applications/examples/controllers/cache_examples.py @@ -1,5 +1,6 @@ import time +response.view = 'cache_examples/generic.html' def cache_in_ram(): """cache the output of the lambda function in ram""" diff --git a/applications/examples/views/cache_examples/generic.html b/applications/examples/views/cache_examples/generic.html new file mode 100644 index 00000000..22b41e70 --- /dev/null +++ b/applications/examples/views/cache_examples/generic.html @@ -0,0 +1,3 @@ +{{extend 'layout.html'}} +

Cache Examples

+{{=BEAUTIFY(response._vars)}} diff --git a/applications/examples/views/simple_examples/ajaxwiki.html b/applications/examples/views/simple_examples/ajaxwiki.html new file mode 100644 index 00000000..363fd418 --- /dev/null +++ b/applications/examples/views/simple_examples/ajaxwiki.html @@ -0,0 +1,4 @@ +{{extend 'layout.html'}} +

Ajax Wiki

+{{=form}} +{{=html}}