#NEWLINE# @ viewer . view ( 'show_post' ) #NEWLINE# def show_post( slug , **kwargs ) : #NEWLINE# #INDENT# 'Render a Post' #NEWLINE# p_filter = ( Post . slug == slug ) #NEWLINE# query = get_posts ( post ) #NEWLINE# if ( query . count ( ) < 1 ) : #NEWLINE# #INDENT# abort ( 404 ) #NEWLINE# #UNINDENT# post = query . first ( ) #NEWLINE# return viewer . render ( 'post.html' , post = post [ 0 ] )