title: Apache Velocity: Escape character not working
body: <p>I'm using Velocity to generate java code and I'm running into a problem with the following line in the template:</p>
  
  <pre><code>return Marshal$sdo.getName().dynamicSize(this);
  </code></pre>
  
  <p>with the desired output being:</p>
  
  <pre><code>return MarshalSomeClass.dynamicSize(this);
  </code></pre>
  
  <p>In this case the VLT is limited to "$sdo.getName()" but the trailing "." causes it not to evaluate the VLT portion.</p>
  
  <p>When I try to escape the "." (e.g. <code>$sdo.getName()\.dynamicSize</code>) I get the following output:</p>
  
  <pre><code>return MarshalTestTypesFile\.dynamicSize(this);
  </code></pre>
  
  <p>I've tried assigning the "." to a VLT variable and wrapping it with curly braces, but then the curly braces are printed. I've tried <code>{$sdo.getName()}</code> and have the same problem. I've tried all the other tricks for escaping to no avail. Seems like it should be pretty simple, but I'm stumped. What am I missing here?</p>