class documentation
class RuleFactory: (source)
Known subclasses: werkzeug.routing.rules.EndpointPrefix
, werkzeug.routing.rules.Rule
, werkzeug.routing.rules.RuleTemplateFactory
, werkzeug.routing.rules.Subdomain
, werkzeug.routing.rules.Submount
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 |
Subclasses of `RuleFactory` have to override this method and return an iterable of rules. |
overridden in
werkzeug.routing.rules.EndpointPrefix
, werkzeug.routing.rules.Rule
, werkzeug.routing.rules.RuleTemplateFactory
, werkzeug.routing.rules.Subdomain
, werkzeug.routing.rules.Submount
Subclasses of `RuleFactory` have to override this method and return an iterable of rules.