#NEWLINE# def render( self , request , contents , **kwargs ) : #NEWLINE# #INDENT# 'Render *contents* using given *request*.\n\n        The context data is represented by keyword arguments.\n        Is no keyword arguments are provided, a default context will be used.\n\n        Return the generated HTML and the modified context.\n        ' #NEWLINE# template = Template ( ( '{% load el_pagination_tags %}' + contents ) ) #NEWLINE# context_data = ( kwargs . copy ( ) if kwargs else { #NEWLINE# #INDENT# 'objects' : range ( 47 ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# context_data [ 'request' ] = html #NEWLINE# context = Context ( context_data ) #NEWLINE# html = template . render ( context ) #NEWLINE# return ( html . strip ( ) , context )