{# An audio link template for including elsewhere. Eventually this will be enabled by default. TODO: user feedback for play/download/etc TODO: transcription TODO: sentence audio links #} {%- import "lexicon.macros" as macros with context -%} {% set has_audio = lexicon_entry|xpath('./lg/audio')|length > 0 %} {%- if has_audio -%} {%- set audio = lexicon_entry|xpath('./lg/audio/a') %}
{%- endif -%} {# vim: set ts=4 sw=4 tw=72 syntax=htmljinja : #}