Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

offerpop / Jinja2   python

Repository URL to install this package:

Version: 2.8.dev0 

/ examples / rwbench / jinja / helpers.html

{% macro input_field(name, value='', type='text') -%}
  <input type="{{ type }}" value="{{ value|e }}" name="{{ name }}">
{%- endmacro %}

{% macro textarea(name, value='', rows=10, cols=40) -%}
  <textarea name="{{ name }}" rows="{{ rows }}" cols="{{ cols }}">{{
    value|e }}</textarea>
{%- endmacro %}

{% macro form(action='', method='post') -%}
  <form action="{{ action|e }}" method="{{ method }}">{{ caller() }}</form>
{%- endmacro %}