{% extends 'templates/default.twig' %} {% block javascripts %} {% endblock %} {% block title %}Music Design #2{% endblock %} {% block content %} Music Woah there, lassy! You will need to enable Javascript to use this page! {{ albums[0].title }} Released on {{ albums[0].releaseDate }} {% if albums[0].description %} {{ albums[0].description }} {% endif %} {{ songs[0].title }} {% for song in songs %} {{ song.track_order }}. {{ song.title }} {% endfor %} {% for album in albums %} {{ album.title }} ({{ album.releaseYear }}) {% if albums[0].description %} {{ albums[0].description|length > 50 ? albums[0].description[:50] ~ '...' : albums[0].description }} {% endif %} {% endfor %} {% endblock %}
{{ albums[0].description }}
{{ albums[0].description|length > 50 ? albums[0].description[:50] ~ '...' : albums[0].description }}