title: How to read annotation value in play framework templates?
body: <p>I want to use values from annotation in CRUD module templates, to utilize HTML5 functions. </p>
  
  <p>e.g. </p>
  
  <p>@Range(min=0, max=10)</p>
  
  <p>public int size;</p>
  
  <p>CRUD module use views/tags/crud/numberField.html to display number field:</p>
  
  <pre><code>#{field 'object.' + _name}
      &lt;label for="${field.id}"&gt;
          &amp;{_name}
      &lt;/label&gt;
      &lt;input id="${field.id}" type="text" name="${field.name}" value="${params[field.name]?.escape()?.raw() ?: field.error?.message == 'validation.required' ? '' : _value?.escape()?.raw()}" size="5" /&gt;
      #{ifError field.name}
          &lt;span class="error"&gt;${field.error}&lt;/span&gt;
      #{/ifError}
  #{/field}
  </code></pre>
  
  <p>How can I read min/max value from annotation then output as min="0" max="0" in &lt;input&gt; ?</p>