{% extends "base.html" %}

{% block content %}
    <h1>Template Preview</h1>
    {% for segment in template %}
        {% if segment.segment_type == "title" %}
            <h1>{{ segment.content }}</h1>
        {% elif segment.segment_type == "subtitle" %}
            <h2>{{ segment.content }}</h2>
        {% elif segment.segment_type == "h1" %}
            <h1>{{ segment.content }}</h1>
        {% elif segment.segment_type == "h2" %}
            <h2>{{ segment.content }}</h2>
        {% elif segment.segment_type == "h3" %}
            <h3>{{ segment.content }}</h3>
        {% elif segment.segment_type == "body" %}
            <p>{{ segment.content|safe }}</p>
        {% elif segment.segment_type == "quote" %}
            <blockquote>{{ segment.content }}</blockquote>
        {% endif %}
    {% endfor %}
{% endblock %}
