<s> from pyramid . renderers import get_renderer <EOL> from pyramid . view import view_config <EOL> from . . resources import Document <EOL> @ view_config ( <EOL> renderer = '<STR_LIT>' , <EOL> ) <EOL> def splash_view ( request ) : <EOL> manage_prefix = request . registry . settings . get ( '<STR_LIT>' , <EOL> '<STR_LIT>' ) <EOL> return { '<STR_LIT>' : manage_prefix } <EOL> @ view_config ( <EOL> context = Document , <EOL> renderer = '<STR_LIT>' , <EOL> ) <EOL> def document_view ( context , request ) : <EOL> return { '<STR_LIT:title>' : context . title , <EOL> '<STR_LIT:body>' : context . body , <EOL> '<STR_LIT>' : get_renderer ( '<STR_LIT>' ) . implementation ( ) , <EOL> } </s>
