コード例 #1
0
ファイル: template.py プロジェクト: c2corg/c2ci18n
 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)
コード例 #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)
コード例 #3
0
ファイル: template.py プロジェクト: 2531699560/flask2
    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)
コード例 #4
0
ファイル: template.py プロジェクト: jchalex/xcat
    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)