--- allow_origins: - '*' allow_xss: false alt_top_banner: '' auto_reload: false auto_reload_interval: 5.0 code: "# This code runs at every page load\r\n\r\ncounters[0] += 1" mimetype: text/html no_header: true no_navheader: true require_method: - GET - POST require_permissions: [] resource_label_image: 16x9/old-lantern.avif resource_timestamp: 1699171048334713 resource_type: page setupcode: "# This code runs once when the page is creates\r\n# All varibles in code\ \ are accessible in the page body.\r\n\r\ncounters = [0]" streaming_response: false template_engine: jinja2 theme_css_url: '' --- {% extends "pagetemplate.j2.html" %} {% block title %} Dynamic Pages {% endblock %} {% block body %}

Dynamic Pages

Here we show how to add code to your pages

Jinja2 templating

Here's a counter! {{ counters[0] }}

{% endblock %}