{% set package = package('template').createPackage(theme_name) %} {% set theme = package.getProperties(true) %} {% set local = service('storage').mountLocal('theme.path',theme.path) %} {% set path = 'images' ~ DIRECTORY_SEPARATOR %} {% set files = getDirectoryFiles(path,false,'theme.path') %} {% if files is not iterable or files|length == 0 %}
{{ messages.empty }}
{% endif %}
{% for file in files %}
{% endfor %}