Source

crosswiki / crosswiki / views.py

Full commit
1
2
3
4
5
6
7
from pyramid.view import view_config
from .models import Page

def show_page(request):
    page_name = request.matchdict['page_name']
    page = Page.query.filter_by(page_name=page_name)
    return dict(page_name=page.page_name, content=page.html_content)