new engine/ app, the location to where to implement plugin/query and
[myslice.git] / engine / views.py
1 # Create your views here.
2
3 from django.core.context_processors import csrf
4 from django.template import RequestContext
5 from django.template.loader import render_to_string
6 from django.shortcuts import render_to_response
7
8 from plugins.simplelist import SimpleList
9
10 def test_plugin_view (request):
11     
12     test_plugin = SimpleList (visible=True, hidable=True)
13     plugin_content = test_plugin.render ()
14
15     print '--------------------'
16     print plugin_content
17     print '--------------------'
18
19     return render_to_response ('test-plugin.html',
20                                {'content_main' : plugin_content},
21                                context_instance=RequestContext(request))
22