root/trunk/etc/flexy2SmartyRunner.php

Revision 1444, 304 bytes (checked in by demian, 1 year ago)

improved flexy to smarty converter

  • Property svn:eol-style set to native
Line 
1 #!/usr/bin/php
2 <?php
3 if (!@$_SERVER['argv'][1]) {
4     die("Usage: php conv.php inputfile\n");
5 }
6 if(!$data = @file_get_contents($_SERVER['argv'][1])) {
7     die("file doesn't exist\n");
8 }
9
10 require_once 'Flexy2Smarty.php';
11 $c = new Flexy2Smarty;
12 echo $c->convert(file_get_contents($_SERVER['argv'][1]));
13 ?>
14
Note: See TracBrowser for help on using the browser.