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

Public Member Functions

def parse (self, parser)
 
- Public Member Functions inherited from Extension
def __init__ (self, environment)
 
def bind (self, environment)
 
def preprocess (self, source, name, filename=None)
 
def filter_stream (self, stream)
 
def attr (self, name, lineno=None)
 
def call_method (self, name, args=None, kwargs=None, dyn_args=None, dyn_kwargs=None, lineno=None)
 
- Public Member Functions inherited from ExtensionRegistry
def __new__ (mcs, name, bases, d)
 

Static Public Attributes

 tags
 
- Static Public Attributes inherited from Extension
 tags
 
 priority
 

Additional Inherited Members

- Data Fields inherited from Extension
 environment
 

Detailed Description

Adds break and continue to the template engine.

Member Function Documentation

◆ parse()

def parse (   self,
  parser 
)
If any of the :attr:`tags` matched this method is called with the
parser as first argument.  The token the parser stream is pointing at
is the name token that matched.  This method has to return one or a
list of multiple nodes.

Reimplemented from Extension.

Field Documentation

◆ tags

tags
static

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