title: Parse String template instead of file in Pebble Template Engine
body: <p>Is it possible to use the Pebble Template Engine to build up a template from a String instead of having to provide a filename?</p>
  
  <pre><code>val engine = PebbleEngine.Builder().build()
  val writer = StringWriter();
  engine.getTemplate("test.html").evaluate(writer);
  </code></pre>
  
  <p>Instead of providing <code>test.html</code>, how would I for example provide a template in the following format?</p>
  
  <pre><code>val template = "Hello {{world}} - {{count}} - {{tf}}"
  </code></pre>
  
  <p>I'm currently on Pebble 2.2.1</p>
  
  <pre><code>&lt;!-- Pebble --&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;com.mitchellbosecke&lt;/groupId&gt;
      &lt;artifactId&gt;pebble&lt;/artifactId&gt;
      &lt;version&gt;2.2.1&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p><strong>Solution</strong> based on the answers I've received:</p>
  
  <pre><code>val context = HashMap&lt;String, Any&gt;()
  ... 
  val engine = PebbleEngine.Builder().loader(StringLoader()).build();
  val writer = StringWriter();
  engine.getTemplate(template).evaluate(writer, context);
  println(writer.toString());
  </code></pre>