mirror of
https://github.com/there4/markdown-resume.git
synced 2024-12-03 08:59:35 -05:00
Initial commit of Markdown Resume
This includes several vendor libraries: Assetic, LessPHP, Mustache, SmartyPants, Markdown
This commit is contained in:
23
vendor/lessphp/lessify
vendored
Executable file
23
vendor/lessphp/lessify
vendored
Executable file
@@ -0,0 +1,23 @@
|
||||
#!/usr/bin/php -q
|
||||
<?php
|
||||
|
||||
if (php_sapi_name() != "cli") {
|
||||
err($fa.$argv[0]." must be run in the command line.");
|
||||
exit(1);
|
||||
}
|
||||
$exe = array_shift($argv); // remove filename
|
||||
|
||||
if (!$fname = array_shift($argv)) {
|
||||
exit("Usage: ".$exe." input-file\n");
|
||||
}
|
||||
|
||||
require "lessify.inc.php";
|
||||
|
||||
try {
|
||||
$parser = new lessify($fname);
|
||||
echo $parser->parse();
|
||||
} catch (exception $e) {
|
||||
exit("Fatal error: ".$e->getMessage()."\n");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user