mw-ui.routes.rules
Route which serves and handles the rules page.
rules-page
(rules-page request)(rules-page)Request handler for the rules request. If the request contains a value for :src, treat that as rule source and try to compile it. If compilation succeeds, stash the compiled rules and the rule text on the session, and provide feedback; if not, provide feedback.
If request doesn’t contain a value for :src, load basic rule source from the session or from resources/rulesets/basic.txt and pass that back.