#NEWLINE# @ register . tag ( name = 'render_page_as_template' ) #NEWLINE# def render_tmpl( parser , token ) : #NEWLINE# #INDENT# '\n    Renders model objects content as template.\n    ' #NEWLINE# try : #NEWLINE# #INDENT# ( tag_name , obj ) = token . split_contents ( ) #NEWLINE# #UNINDENT# except ValueError : #NEWLINE# #INDENT# raise template . TemplateSyntaxError ( ( '%r tag requires a single argument' % token . contents . split ( ) [ 0 ] ) ) #NEWLINE# #UNINDENT# obj = parser . compile_filter ( token ) #NEWLINE# return TemplateNode ( obj )