title: jdbi version 3, stringtemplate when to escape <, > characters?
body: <p>I am using jdbi3 with StringTemplate 4 templating engine, I have this test query:</p>
  
  <pre><code>    @SqlQuery("select * from test "
          + "where field1 = 5"
          + "&lt;if(cond1)&gt; or field2 \\&lt;= :value1&lt;endif&gt;"
          + "&lt;if(cond2)&gt; or field2 &gt;= :value2&lt;endif&gt;"
          + "&lt;if(cond3)&gt; or field2 in (&lt;values&gt;)&lt;endif&gt;")
  @RegisterBeanMapper(Test.class)
  @UseStringTemplateEngine
  public List&lt;Test&gt; selectTest(
          @Define("cond1") boolean cond1, @Bind("value1") int value2,
          @Define("cond2") boolean cond2, @Bind("value2") int value3,
          @Define("cond3") boolean cond3,
          @BindList(value="values", onEmpty=BindList.EmptyHandling.NULL_STRING ) List&lt;Integer&gt; values);
  </code></pre>
  
  <p>Using StringTemplate engine when I have to escape with <code>\</code> the characters <code>&lt;</code> or <code>&gt;</code>  in the query?
  Testing I found that I have to escape <code>&lt;=</code> in the query like I did.</p>
  
  <p>In the IN clause using <code>@BindList</code> I have to use the <code>&lt;values&gt;</code> but in this case I was expecting to escape it like <code>\\&lt;values&gt;</code> otherwise it will be used as attribute by StringTemplate but if I do this the query doesn't work.</p>
  
  <p>About <code>&gt;=</code> escaping it or not seems the same in the query.</p>