How to use the jinja.nodes.Node.__init__ function in Jinja

To help you get started, we’ve selected a few Jinja examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pallets / jinja / jinja / nodes.py View on Github external
def __init__(self, name, body, lineno=None, filename=None):
        Node.__init__(self, lineno, filename)
        self.name = name
        self.body = body
github pallets / jinja / jinja / nodes.py View on Github external
def __init__(self, expr, body, lineno=None, filename=None):
        Node.__init__(self, lineno, filename)
        self.expr = expr
        self.body = body
github pallets / jinja / jinja / nodes.py View on Github external
def __init__(self, text, variables, lineno=None, filename=None):
        Node.__init__(self, lineno, filename)
        self.text = text
        self.variables = variables
github pallets / jinja / jinja / nodes.py View on Github external
def __init__(self, seq, lineno=None, filename=None):
        Node.__init__(self, lineno, filename)
        self.seq = seq
github pallets / jinja / jinja / nodes.py View on Github external
def __init__(self, name, arguments, body, lineno=None, filename=None):
        Node.__init__(self, lineno, filename)
        self.name = name
        self.arguments = arguments
        self.body = body
github pallets / jinja / jinja / nodes.py View on Github external
def __init__(self, extends, body, lineno=None, filename=None):
        Node.__init__(self, lineno, filename)
        self.extends = extends
        self.body = body
github pallets / jinja / jinja / nodes.py View on Github external
def __init__(self, expr, lineno=None, filename=None):
        Node.__init__(self, lineno, filename)
        self.expr = expr
github pallets / jinja / jinja / nodes.py View on Github external
def __init__(self, template, lineno=None, filename=None):
        Node.__init__(self, lineno, filename)
        self.template = template
github pallets / jinja / jinja / nodes.py View on Github external
def __init__(self, singular, plural, indicator, replacements,
                 lineno=None, filename=None):
        Node.__init__(self, lineno, filename)
        self.singular = singular
        self.plural = plural
        self.indicator = indicator
        self.replacements = replacements
github pallets / jinja / jinja / nodes.py View on Github external
def __init__(self, item, seq, body, else_, recursive, lineno=None,
                 filename=None):
        Node.__init__(self, lineno, filename)
        self.item = item
        self.seq = seq
        self.body = body
        self.else_ = else_
        self.recursive = recursive