title: Freemarker placeholder in html file in Android IDE Template Format
body: <p>I'm working with android studio to develop Android app. I'm working on the creation of a template to use in my applications. I have read the <a href="http://www.i-programmer.info/professional-programmer/resources-and-tools/6845-android-adt-template-format-document.html#toc_templatexml" rel="nofollow">Android IDE Template Format specification</a> and so i start my personal template starting from Dummy template.</p>
  
  <p>I have a .ftl file with the following line of code:</p>
  
  <pre><code>&lt;applicationGestureListenerClazz&gt;${projectPackageName}.listeners.${projectShortName}GestureListener&lt;/applicationGestureListenerClazz&gt;
  </code></pre>
  
  <p>When i execute the template i obtain the following line:</p>
  
  <pre><code>&lt;applicationGestureListenerClazz&gt;org.abubu.dummy.listeners.DummyGestureListener
      &lt;/applicationGestureListenerClazz&gt;
  </code></pre>
  
  <p>The variables are correctly defined (in other file they work fine). I don't known why.. it add a CRLF after this line.</p>
  
  <p>Anybody has analogue problem?</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I discover that the problem is linked to extension of output file. For example. I have a file **license_key_strings.txt.ftl* that contains:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;resources&gt;
  &lt;!-- public key di ${projectPackageName}.key--&gt;
  &lt;string name="publicKey"&gt;${licenseKey}&lt;/string&gt;                          
  &lt;/resources&gt;
  &lt;!-- fine --&gt;
  </code></pre>
  
  <p>If i use it to create a xml file</p>
  
  <pre><code>&lt;instantiate    from="root/key/src/main/res/values/license_key_strings.txt.ftl" to="${keyBaseDir}/src/main/res/values/license_key_strings.xml"/&gt;
  </code></pre>
  
  <p>I obtain this file:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;resources&gt;
      &lt;!-- public key di org.dummy.key--&gt;
      &lt;string name="publicKey"&gt;
         MIIBIjANBgkqhkiG9w0BAQ
      &lt;/string&gt;
  &lt;/resources&gt;
  </code></pre>
  
  <p>But the output filename ends with .txt</p>
  
  <pre><code>&lt;instantiate    from="root/key/src/main/res/values/license_key_strings.txt.ftl" to="${keyBaseDir}/src/main/res/values/license_key_strings.txt"/&gt;
  </code></pre>
  
  <p>The final output become:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;resources&gt;
  &lt;!-- public key di org.dummy.key--&gt;
  &lt;string name="publicKey"&gt;MIIBIjANBgkqhkiG9w0BAQ&lt;/string&gt;                     
  &lt;/resources&gt;
  &lt;!-- fine --&gt;
  </code></pre>
  
  <p>I'm working with Android Studio 1.4</p>