code: def render_template(template_name, template_getter=get_app_template):
      
      def wrapper(func):
          template = template_getter(template_name)
  
          def _wraped(self, request, context, *args, **kwargs):
              res = func(self, request, context, *args, **kwargs)
              if isinstance(res, dict):
                  return template.render(**res)
              else:
                  return res
          return _wraped
      return wrapper
docs: Decorator to specify which template to use for Wrapped Views.
  
      It will return string rendered by specified template and
      returned dictionary from wrapped views as a context for template.
      The returned value was not dictionary, it does nothing,
      just returns the result.