caption in navigation %}
                    <li class="navitem">
                       <a href="{{ href }}" id="{{ id }}" data-icon="{{ icon }}" class="{{ 'ui-btn-active' if active_page == id }}">{{ caption }}</a>
                    </li>
                {% endfor %}
            </ul>
        </div>
    </div>

    {% block content %}
    {% endblock %}

</div>
{% block scripts %}
<script type="text/javascript" src="/js/jquery-1.12.4.min.js"></script>
<script type="text/javascript" src="/js/jquery.mobile