- echo "Usage: ".basename(__FILE__)." <template> [--write]\n\n";
- echo "Validates a template against the DOM model. Use --write with caution!\n";
+ print "Usage: ".basename(__FILE__)." <template> [--write]\n\n";
+ print "Validates a template against the DOM model. Use --write with caution!\n";
+ exit;
+} elseif (strpos($_SERVER['argv'][1], '/js/') > 0) {
+ // Not parsing JavaScript templates!
+ print "Warning: Not parsing JavaScript ".$_SERVER['argv'][1].".\n";