FAQ === Why do I have undesired auto-escapes in my template output? ----------------------------------------------------------- Make sure your templates end in ``.htm``, ``.html``, ``.xml`` or ``.xhtml``. Flask sets the Jinja2-autoescape mode depending on the template file extension (see `this StackOverflow question `_ for more information). General convention in Flask applications is to name your HTML-templates ``.html`` though. How can I add custom javascript to the template? ------------------------------------------------ .. highlight:: jinja Use Jinja2's super_ in conjunction with the ``scripts`` block. The super-function adds the contents of a block from the parent template, that way you can even decide if you want to include it before or after jQuery/bootstrap. Example:: {% block scripts %} {{super()}}