<s> from django . utils . safestring import mark_safe <EOL> from fluent_contents . extensions import ContentPlugin , plugin_pool <EOL> from fluent_contents . tests . testapp . models import RawHtmlTestItem , TimeoutTestItem <EOL> @ plugin_pool . register <EOL> class RawHtmlTestPlugin ( ContentPlugin ) : <EOL> """<STR_LIT>""" <EOL> model = RawHtmlTestItem <EOL> def render ( self , request , instance , ** kwargs ) : <EOL> return mark_safe ( instance . html ) <EOL> @ plugin_pool . register <EOL> class TimeoutTestPlugin ( ContentPlugin ) : <EOL> """<STR_LIT>""" <EOL> model = TimeoutTestItem <EOL> cache_timeout = <NUM_LIT> <EOL> def render ( self , request , instance , ** kwargs ) : <EOL> return mark_safe ( instance . html ) <EOL> def get_render_template ( self , request , instance , ** kwargs ) : <EOL> return super ( TimeoutTestPlugin , self ) . get_render_template ( request , instance , ** kwargs ) </s>
