class documentation

class StplParser(object):

View In Hierarchy

Parser for stpl templates.
Method __init__ Undocumented
Method fix​_backward​_compatibility Undocumented
Method flush​_text Undocumented
Method get​_syntax Tokens as a space separated string (default: <% %> % {{ }})
Method process​_inline Undocumented
Method read​_code Undocumented
Method set​_syntax Undocumented
Method translate Undocumented
Method write​_code Undocumented
Class Variable ​_re​_cache Undocumented
Class Variable ​_re​_inl Undocumented
Class Variable ​_re​_split Undocumented
Class Variable ​_re​_tok Undocumented
Class Variable default​_syntax Undocumented
Class Variable syntax Undocumented
Instance Variable ​_syntax Undocumented
Instance Variable ​_tokens Undocumented
Instance Variable code​_buffer Undocumented
Instance Variable encoding Undocumented
Instance Variable indent Undocumented
Instance Variable indent​_mod Undocumented
Instance Variable lineno Undocumented
Instance Variable offset Undocumented
Instance Variable paren​_depth Undocumented
Instance Variable re​_inl Undocumented
Instance Variable re​_split Undocumented
Instance Variable re​_tok Undocumented
Instance Variable source Undocumented
Instance Variable text​_buffer Undocumented
def __init__(self, source, syntax=None, encoding='utf8'):

Undocumented

def fix_backward_compatibility(self, line, comment):

Undocumented

def flush_text(self):

Undocumented

def get_syntax(self):
Tokens as a space separated string (default: <% %> % {{ }})
def process_inline(self, chunk):

Undocumented

def read_code(self, multiline):

Undocumented

def set_syntax(self, syntax):

Undocumented

def translate(self):

Undocumented

def write_code(self, line, comment=''):

Undocumented

_re_cache: dict =

Undocumented

_re_inl =

Undocumented

_re_split: str =

Undocumented

_re_tok =

Undocumented

default_syntax: str =

Undocumented

syntax =

Undocumented

_syntax =

Undocumented

_tokens =

Undocumented

code_buffer =

Undocumented

encoding =

Undocumented

indent =

Undocumented

indent_mod =

Undocumented

lineno =

Undocumented

offset =

Undocumented

paren_depth: int =

Undocumented

re_inl =

Undocumented

re_split =

Undocumented

re_tok =

Undocumented

source =

Undocumented

text_buffer =

Undocumented