class documentation

class RuleFactory:

Known subclasses: werkzeug.routing.EndpointPrefix, werkzeug.routing.Rule, werkzeug.routing.RuleTemplateFactory, werkzeug.routing.Subdomain, werkzeug.routing.Submount

View In Hierarchy

As soon as you have more complex URL setups it's a good idea to use rule factories to avoid repetitive tasks. Some of them are builtin, others can be added by subclassing RuleFactory and overriding get_rules.
Method get​_rules Subclasses of RuleFactory have to override this method and return an iterable of rules.
def get_rules(self, map):
Subclasses of RuleFactory have to override this method and return an iterable of rules.
Parameters
map:MapUndocumented
Returns
t.Iterable[Rule]Undocumented