handbook-engine / app /templates /partials /blocks /render_block.html
internationalscholarsprogram's picture
Initial deploy: ISP Handbook PDF engine
2deab8c verified
raw
history blame contribute delete
861 Bytes
{# Universal block dispatcher — renders any RenderBlock via its type-specific partial #}
{% if block.block_type in ('heading_1', 'heading_2') %}
{% include "partials/blocks/heading.html" %}
{% elif block.block_type == 'paragraph' %}
{% include "partials/blocks/paragraph.html" %}
{% elif block.block_type == 'bullet_list' %}
{% include "partials/blocks/bullet_list.html" %}
{% elif block.block_type == 'note' %}
{% include "partials/blocks/note.html" %}
{% elif block.block_type == 'table' %}
{% include "partials/blocks/table.html" %}
{% elif block.block_type == 'enrollment_steps' %}
{% include "partials/blocks/enrollment_steps.html" %}
{% elif block.block_type == 'university_summary' %}
{% include "partials/blocks/university_summary.html" %}
{% elif block.block_type == 'school_profile' %}
{% include "partials/blocks/school_profile.html" %}
{% endif %}