satisfeet / jacana

Jacana serves the public online store for satisfeet.
https://jacana.satisfeet.me
0 stars 0 forks source link

use swig macros for forms #19

Closed bodokaiser closed 10 years ago

bodokaiser commented 10 years ago
{% macro input(type, name, label) %}
<label for="{{ name }}">{{ label }}</label>
<input type="{{ type }}" name="{{ name }}" id="{{ name }}">
{% endmacro %}

{% macro button type label %}
<button type="{{ type|default("submit") }}">{{ label|default("Submit") }}</button>
{% endmacro %}

documentation

bodokaiser commented 10 years ago

use something like that in jade