An example of extending Moops to add an
MoopsX::TraitFor::Parser::ExceptionKeyword is a trait for Moops::Parser, adding support for parsing the
exception keyword, and injects the MoopsX::Keyword::Exception class when it is encountered.
A more practical application of this would be something like an MVC framework, where you might want to define
controller keywords, which set up classes with particular inheritance patterns, and import commonly used functions into each (e.g. URI manipulation functions into controllers, and HTML escaping functions into views).
Requires the Throwable role which is available from CPAN.
Toby Inkster <firstname.lastname@example.org>.
COPYRIGHT AND LICENCE
This software is copyright (c) 2013 by Toby Inkster.