Sha256: b2c45a24691021fa99f96c6073951e8530e1586b677fd141d547ba817e22ef35
Contents?: true
Size: 579 Bytes
Versions: 3
Compression:
Stored size: 579 Bytes
Contents
#!/usr/bin/env php <?php if(!isset($argv[1])){ echo "No input file specified!\n"; exit(1); } $input_file = $argv[1]; $output_file = preg_replace("/\\.haml/",'.php', $input_file); if(!is_file($input_file)){ echo "Input file '$input_file' does not exist."; exit(1); } define('PIMTOOL_ROOT', dirname(dirname(__FILE__))); require PIMTOOL_ROOT.'/lib/Phamlp/Phamlp.php'; require PIMTOOL_ROOT.'/lib/Phamlp/haml/HamlParser.php'; $haml = new HamlParser(array( 'style' =>'expanded', 'ugly' =>false )); $xhtml = $haml->parse($input_file); echo $xhtml;
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
frontsau-0.0.3 | bin/frontsau-phaml-compiler |
frontsau-0.0.2 | bin/frontsau-phaml-compiler |
frontsau-0.0.1 | bin/frontsau-phaml-compiler |