old_contents: #coding: utf-8
  from mako.template import Template
  
  from formalchemy2.renderers import BaseRenderer
  
  __all__ = [u'TextInput', u'Select', u'HiddenInput']
  
  
  class MakoRenderer(BaseRenderer):
  
      def render(self, field):
          return self.template.render_unicode(field=field)
  
  
  class TextInput(MakoRenderer):
  
      TEMPLATE = u"""\
  <label for=${field.id}>${field.label}</label>
  % if field.value:
  <input type=text id=${field.id} name=${field.id} value="${field.value}"/>
  % else:
  <input type=text id=${field.id} name=${field.id}/>
  % endif
  """
  
      template = Template(TEMPLATE)
  
  
  class HiddenInput(MakoRenderer):
  
      TEMPLATE = u"""\
  % if field.value:
  <input type=hidden id=${field.id} name=${field.id} value="${field.value}"/>
  % else:            
  <input type=hidden id=${field.id} name=${field.id}/>
  % endif
  """
  
      template = Template(TEMPLATE)
  
  
  class Select(MakoRenderer):
  
      TEMPLATE = u"""\
  <label for=${field.id}>${field.label}</label>
  <select id=${field.id} name=${field.id}>
  % for (id, name) in field.choices:
    % if field.value == id:
    <option value="${id}" selected>${name}</option>
    % else:
    <option value="${id}">${name}</option>
    % endif
  % endfor
  </select>
  """
  
      template = Template(TEMPLATE)
  
new_contents: #coding: utf-8
  from mako.template import Template
  
  from formalchemy2.renderers import BaseRenderer
  
  __all__ = [u'TextInput', u'Select', u'HiddenInput']
  
  
  class MakoRenderer(BaseRenderer):
  
      def render(self, field):
          return self.template.render_unicode(field=field)
  
  
  class TextInput(MakoRenderer):
  
      WIDGET = u"""\
  <label for=${field.id}>${field.label}</label>
  % if field.value:
  <input type=text id=${field.id} name=${field.id} value="${field.value}"/>
  % else:
  <input type=text id=${field.id} name=${field.id}/>
  % endif
  """
  
      template = Template(WIDGET)
  
  
  class HiddenInput(MakoRenderer):
  
      WIDGET = u"""\
  % if field.value:
  <input type=hidden id=${field.id} name=${field.id} value="${field.value}"/>
  % else:            
  <input type=hidden id=${field.id} name=${field.id}/>
  % endif
  """
  
      template = Template(WIDGET)
  
  
  class Select(MakoRenderer):
  
      WIDGET = u"""\
  <label for=${field.id}>${field.label}</label>
  <select id=${field.id} name=${field.id}>
  % for (id, name) in field.choices:
    % if field.value == id:
    <option value="${id}" selected>${name}</option>
    % else:
    <option value="${id}">${name}</option>
    % endif
  % endfor
  </select>
  """
  
      template = Template(WIDGET)
  
subject: rename html5 renderers TEMPALTE attribute to WIDGET