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 <email@example.com>.
This software is copyright (c) 2013 by Toby Inkster.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.