Skip to content

Instantly share code, notes, and snippets.

Created April 29, 2016 15:15
What would you like to do?
<tal:container tal:define="image python: view.get_image()">
<div class="image-tile-container" tal:define="caption view/data/caption|nothing">
<p class="image" tal:condition="nocall: image">
<img src="${image/absolute_url}/@@images/image/${view/data/scale|large}" alt="${image/Title}" />
<p class="description" tal:condition="caption">${caption}</p>
<p tal:condition="python: not image">
No image specified
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment