<s> from django . template . loader import get_template <EOL> from django . template import Context <EOL> class ObjectTool ( object ) : <EOL> def render ( self , request , context ) : <EOL> pass <EOL> class LinkObjectTool ( object ) : <EOL> template_name = '<STR_LIT>' <EOL> def __init__ ( self , title , url , css_class = '<STR_LIT>' ) : <EOL> self . title = title <EOL> self . url = url <EOL> self . css_class = css_class <EOL> def render ( self , request , context ) : <EOL> template = get_template ( self . template_name ) <EOL> context = Context ( { '<STR_LIT:title>' : self . title , <EOL> '<STR_LIT:url>' : self . url , <EOL> '<STR_LIT>' : self . css_class , } ) <EOL> return template . render ( context ) </s>
