{{ url_for('static',filename='a.css') }}
{% macro static_file(type, filename_or_url, local=True) %} {% if local -%} {% set filename_or_url = url_for('static', filename=filename_or_url) %} {%- endif %} {% if type == 'css' -%} <link rel="stylesheet" href="{{ filename_or_url }}" type="text/css"> {%- elif type == 'js' -%} <script type="text/javascript" src="{{ filename_or_url }}"></script> {%- elif type == 'icon' -%} <link rel="icon" href="{{ filename_or_url }}"> {%- endif %} {% endmacro %}
{% from 'macros.html' import static_file %} {{ static_file('css','css/bootstrap.min.css') }}
flash('heheheh') return redirect('xxx')
<main> {% for message in get_flashed_messages() %} <div class="alert">{{ message }}</div> {% endfor %} {% block content %}{% endblock %} </main>