Esempio n. 1
0
 def render_context(self, context, *args, **kwargs):
     """render this Template with the given context.  
     
     the data is written to the context's buffer."""
     if getattr(context, '_with_template', None) is None:
         context._with_template = self
     runtime._render_context(self, self.callable_, context, *args, **kwargs)
Esempio n. 2
0
 def render_context(self, context, *args, **kwargs):
     """render this Template with the given context.  
     
     the data is written to the context's buffer."""
     if getattr(context, '_with_template', None) is None:
         context._with_template = self
     runtime._render_context(self, self.callable_, context, *args, **kwargs)
Esempio n. 3
0
    def render_context(self, context, *args, **kwargs):
        """Render this :class:`.Template` with the given context.

        The data is written to the context's buffer.

        """
        if getattr(context, "_with_template", None) is None:
            context._set_with_template(self)
        runtime._render_context(self, self.callable_, context, *args, **kwargs)
Esempio n. 4
0
    def render_context(self, context, *args, **kwargs):
        """Render this :class:`.Template` with the given context.

        The data is written to the context's buffer.

        """
        if getattr(context, '_with_template', None) is None:
            context._set_with_template(self)
        runtime._render_context(self,
                                self.callable_,
                                context,
                                *args,
                                **kwargs)