Skip to content

Instantly share code, notes, and snippets.

self = <jinja2.lexer.Lexer object at 0x7f1099f56128>
source = '<!doctype html>\n<html class="no-js" lang="en">\n <head>\n <meta charset="utf-8" />\n <meta name="vi...on.min.js"></script>\n <script>\n $(document).foundation();\n </script>\n </body>\n</html>'
name = 'layout.html'
filename = '/home/travis/build/Leo-g/Flask-Scaffold/app/templates/layout.html'
state = 'root'
def tokeniter(self, source, name, filename=None, state=None):
"""This method tokenizes the text and returns the tokens in a
generator. Use this method if you just want to tokenize a template.
"""
source = text_type(source)