Skip to content

Commit

Permalink
Next step for macroization of text.html
Browse files Browse the repository at this point in the history
  • Loading branch information
PonteIneptique committed May 14, 2016
1 parent 5642e47 commit 014be35
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions flask_nemo/data/templates/text.html
Expand Up @@ -25,21 +25,21 @@ <h2>{{version.parents[1].metadata["groupname"][lang]}}</h2>
{% include "main::passage_footer.html" %}
{% endmacro %}

{% macro show_passage(text, navigation=nav, header=header_passage, footer=default_footer) %}
{% macro show_passage(text, header, navigation, footer) %}
<article>
{{ header() }}
{{ header }}
<nav>
{{ navigation() }}
{{ navigation }}
</nav>
<section>
{{ text }}
</section>
<footer>
{{ footer() }}
{{ footer }}
</footer>
</article>
{% endmacro %}

{% block article %}
{{ show_passage(text_passage) }}
{{ show_passage(text_passage, navigation=nav(), header=header_passage(), footer=default_footer()) }}
{% endblock %}

0 comments on commit 014be35

Please sign in to comment.