{% if not raw %} {% if author.link %} {% endif %} {% if author.note %} {{ include('models/note.html', {note: author.note, endpoint: endpoint, dbNum: dbNum}, with_context = false) }} {% endif %} {% if author.series %} {% for serie in author.series %} {% endfor %} {% endif %} {% if author.books %} {% for book in author.books %} {% endfor %} {% endif %}
Name {{author.name}}
Link {{author.link}}
Series {{author.series|length}}
Series {{serie.id}} {{ include('models/serie.html', {serie: serie, endpoint: endpoint, dbNum: dbNum}, with_context = false) }}
Books {{author.books|length}}
Book {{book.id}} {{ include('models/book.html', {book: book, endpoint: endpoint, dbNum: dbNum}, with_context = false) }}
{% else %}
{{author|json_encode(constant('JSON_PRETTY_PRINT') b-or constant('JSON_UNESCAPED_SLASHES') b-or constant('JSON_UNESCAPED_UNICODE'))}}
{% endif %}