def render_template_with_system_context(value, context=None, prefix=None):
 context = (context or {})
 context[SYSTEM_SCOPE] = KeyValueLookup(prefix=prefix, scope=SYSTEM_SCOPE)
 context[DATASTORE_PARENT_SCOPE] = {SYSTEM_SCOPE: KeyValueLookup(prefix=prefix, scope=SYSTEM_SCOPE)}
 rendered = render_template(value=value, context=context)
 return rendered

def render_template_with_system_context ( value , context = None , prefix = None ) : context = ( context or { } ) context [ SYSTEM_SCOPE ] = KeyValueLookup ( prefix = prefix , scope = SYSTEM_SCOPE ) context [ DATASTORE_PARENT_SCOPE ] = { SYSTEM_SCOPE : KeyValueLookup ( prefix = prefix , scope = SYSTEM_SCOPE ) } rendered = render_template ( value = value , context = context ) return rendered
render provided template with a default system context .