Implementing preprocess function for custom template
I tried your thing on my local server. And its working fine. Just try in your template:

&lt;?php
  // Print your defined variable here like this.
  print $title;
?&gt;