def sub_tempita(s, context, file=None, name=None):
 if (not s):
  return None
 if file:
  context['__name'] = ('%s:%s' % (file, name))
 elif name:
  context['__name'] = name
 from ..Tempita import sub
 return sub(s, **context)

def sub_tempita ( s , context , file = None , name = None ) : if ( not s ) : return None if file : context [ '__name' ] = ( '%s:%s' % ( file , name ) ) elif name : context [ '__name' ] = name from . . Tempita import sub return sub ( s , ** context )
run tempita on string s with given context .