Example #1
0
 /**
  * Generates PHP code for the given template file
  *
  * @param array $args Command line arguments
  *
  * @return void
  */
 function doGenerate($args)
 {
     if (count($args) == 0) {
         $this->dieHard("No template file given\n", 1);
     }
     $strFile = $args[0];
     include_once 'HTML/Template/PHPLIB/Generator.php';
     $strCode = HTML_Template_PHPLIB_Generator::getCodeBlockDefinition($strFile);
     $this->dieHard($strCode, 0);
 }