{{ spellbook.title }}

{{ spellbook.author }}

    {% for d20class, levels in spellbook.spells|dictsort %} {% set d20class_loop = loop %}
  1. {{ d20class }}
    1. {% for level, spells in levels|dictsort %} {% set level_loop = loop %}
    2. Level {{ level }}
      1. {% for spell in spells %}
      2. {{ spell.name }}
      3. {% endfor %}
      {% endfor %}
    {% endfor %}
{% for d20class, levels in spellbook.spells|dictsort %} {% set d20class_loop = loop %}

{{ d20class }}

{% for level, spells in levels|dictsort %} {% set level_loop = loop %}

Level {{ level }}

{% for spell in spells %}
{{ spell.name }}
{{ spell.rulebook }}
{{ d20class }} {{ level }}
{{ spell.school }}
{% if spell.subschool %}
{{ spell.subschool }}
{% endif %}
{%- if spell.descriptors -%} {%- for d in spell.descriptors -%} {% if loop.first -%} [ {%- endif -%} {{d.name}} {%- if loop.last -%} ] {%- else -%} ,  {%- endif -%} {%- endfor%} {% endif %}
{% if spell.verbal or spell.material or spell.somatic or spell.arcane_focus or spell.divine_focus or spell.xp_costs %} {% endif %} {% if spell.cast_time %} {% endif %} {% if spell.spell_range %} {% endif %} {% if spell.area %} {% endif %} {% if spell.target %} {% endif %} {% if spell.effect %} {% endif %} {% if spell.duration %} {% endif %} {% if spell.save %} {% endif %} {% if spell.spell_res %} {% endif %}
Components {% if spell.verbal %} V {% endif %} {% if spell.somatic %} S {% endif %} {% if spell.material %} M {% endif %} {% if spell.arcane_focus %} AF {% endif %} {% if spell.divine_focus %} DF {% endif %} {% if spell.xp_costs %} XP {% endif %}
Casting time {{ spell.cast_time }}
Range {{ spell.spell_range }}
Area {{ spell.area }}
Target {{ spell.target }}
Effect {{ spell.effect }}
Duration {{ spell.duration }}
Saving throw {{ spell.save }}
Spell resistance {{ spell.spell_res }}
{{ spell.text }}
{% endfor %}
{% endfor %} {% endfor %}