mirror of
https://github.com/there4/markdown-resume.git
synced 2024-12-03 08:59:35 -05:00
Improve class handling in PDF
* Update phar * Fix several sniff errors * Remove unused converter file * Update README with better quickstart information
This commit is contained in:
@@ -31,17 +31,17 @@ class HtmlCommand extends Command
|
||||
'Output destination folder'
|
||||
)
|
||||
->addOption(
|
||||
'template',
|
||||
't',
|
||||
InputOption::VALUE_OPTIONAL,
|
||||
'Which of the templates to use'
|
||||
'template',
|
||||
't',
|
||||
InputOption::VALUE_OPTIONAL,
|
||||
'Which of the templates to use'
|
||||
)
|
||||
->addOption(
|
||||
'refresh',
|
||||
'r',
|
||||
InputOption::VALUE_NONE,
|
||||
'If set, the html will include a meta command to refresh the ' .
|
||||
'document every 5 seconds.'
|
||||
'refresh',
|
||||
'r',
|
||||
InputOption::VALUE_NONE,
|
||||
'If set, the html will include a meta command to refresh the ' .
|
||||
'document every 5 seconds.'
|
||||
);
|
||||
}
|
||||
|
||||
@@ -86,12 +86,8 @@ class HtmlCommand extends Command
|
||||
if (!$template) {
|
||||
$template = $this->app->defaultTemplate;
|
||||
}
|
||||
$templatePath = join(DIRECTORY_SEPARATOR, array(
|
||||
$this->app->templatePath, basename($template)
|
||||
));
|
||||
$templateIndexPath = join(DIRECTORY_SEPARATOR, array(
|
||||
$templatePath, 'index.html'
|
||||
));
|
||||
$templatePath = join(DIRECTORY_SEPARATOR, array($this->app->templatePath, basename($template)));
|
||||
$templateIndexPath = join(DIRECTORY_SEPARATOR, array($templatePath, 'index.html'));
|
||||
if (!file_exists($templateIndexPath)) {
|
||||
$output->writeln(
|
||||
sprintf(
|
||||
|
||||
Reference in New Issue
Block a user