OpenQuizz
Une application de gestion des contenus pédagogiques
NativeTemplate Class Reference
Inheritance diagram for NativeTemplate:
Collaboration diagram for NativeTemplate:

Public Member Functions

def render (self, *args, **kwargs)
 
- Public Member Functions inherited from Template
def __new__ (cls, source, block_start_string=BLOCK_START_STRING, block_end_string=BLOCK_END_STRING, variable_start_string=VARIABLE_START_STRING, variable_end_string=VARIABLE_END_STRING, comment_start_string=COMMENT_START_STRING, comment_end_string=COMMENT_END_STRING, line_statement_prefix=LINE_STATEMENT_PREFIX, line_comment_prefix=LINE_COMMENT_PREFIX, trim_blocks=TRIM_BLOCKS, lstrip_blocks=LSTRIP_BLOCKS, newline_sequence=NEWLINE_SEQUENCE, keep_trailing_newline=KEEP_TRAILING_NEWLINE, extensions=(), optimized=True, undefined=Undefined, finalize=None, autoescape=False, enable_async=False)
 
def from_code (cls, environment, code, globals, uptodate=None)
 
def from_module_dict (cls, environment, module_dict, globals)
 
def render_async (self, *args, **kwargs)
 
def stream (self, *args, **kwargs)
 
def generate (self, *args, **kwargs)
 
def generate_async (self, *args, **kwargs)
 
def new_context (self, vars=None, shared=False, locals=None)
 
def make_module (self, vars=None, shared=False, locals=None)
 
def make_module_async (self, vars=None, shared=False, locals=None)
 
def module (self)
 
def get_corresponding_lineno (self, lineno)
 
def is_up_to_date (self)
 
def debug_info (self)
 
def __repr__ (self)
 

Static Public Attributes

 environment_class
 
- Static Public Attributes inherited from Template
 environment_class
 

Member Function Documentation

◆ render()

def render (   self,
args,
**  kwargs 
)
Render the template to produce a native Python type. If the
result is a single node, its value is returned. Otherwise, the
nodes are concatenated as strings. If the result can be parsed
with :func:`ast.literal_eval`, the parsed value is returned.
Otherwise, the string is returned.

Reimplemented from Template.

Field Documentation

◆ environment_class

environment_class
static

The documentation for this class was generated from the following file: