code: def get_render(name, data, trans='en'):
      
      translation.activate(trans)
      config = loader.get_template(name)
      result = config.render(data).replace('\r', '')
      translation.deactivate()
      return result
docs: Render string based on template
  
      :param name: -- full template name
      :type name: str,unicode
      :param data: -- dict of rendered vars
      :type data: dict
      :param trans: -- translation for render. Default 'en'.
      :type trans: str,unicode
      :return: -- rendered string
      :rtype: str,unicode