Skip to content

Instantly share code, notes, and snippets.

@phcostabh
Created August 8, 2013 11:44
Show Gist options
  • Select an option

  • Save phcostabh/6183923 to your computer and use it in GitHub Desktop.

Select an option

Save phcostabh/6183923 to your computer and use it in GitHub Desktop.
{% extends 'base.volt' %}
{% block content %}
{%- macro error_messages(message, field, type) %}
<div>
<span class="error-type">{{ type }}</span>
<span class="error-field">{{ field }}</span>
<span class="error-message">{{ message }}</span>
</div>
{%- endmacro %}
{{ error_messages("there is an error", "id", "required") }}
{% endblock %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment