-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix crash when loading unsupported Tilt handlers
Tilt supports lots of different templating engines, each via a different class. When Tilt deprecates and removes a templating engine (as recently happened with Maruku), Ruby will raise a `NameError` exception when we call `Tilt.const_get` to access the (now missing) class by name. This patch ignores those errors, allowing Nesta to try loading another Markdown engine.
- Loading branch information
Showing
2 changed files
with
10 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters