Skip to content

Commit

Permalink
- Reformat mixed HTML / Twig
Browse files Browse the repository at this point in the history
- Continue when an error occurs with an unsupported node type and then report
-
  • Loading branch information
jongardiner committed May 11, 2017
1 parent fb8ceed commit 7c5b99b
Show file tree
Hide file tree
Showing 6 changed files with 282 additions and 403 deletions.
9 changes: 9 additions & 0 deletions bin/twigify.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,14 @@
echo $e->getMessage()."\n";
}


$errors = $converter->getErrors();
if (count($errors)>0) {
echo "\n\nErrors:\n";
foreach ($converter->getErrors() as $error) {
echo " - $error\n";
}
}

$plugins->beforeShutdown();

Loading

0 comments on commit 7c5b99b

Please sign in to comment.