{% import "plainui/components/buttons.html" as buttonsMacro %} {# Fetches the wiki page for given slug. Renders a card with title and contents from the wiki page. #} {% macro card(slug, class="", button_label=None, button_link=None) %}
{% set title, body = fetch_wiki_page(slug) %}

{{ title }}

{{ body }} {% if button_label and button_link %} {{ buttonsMacro.primary( button_label, button_link ) }} {% endif %}
{% endmacro %}