URL Generation — Aquilia Documentation
Comprehensive guide and documentation for URL Generation in the Aquilia framework. View API reference, examples, and implementation patterns.
Routing URL Generation Aquilia handles reverse URL resolution by looking up registered controller method names and filling in path templates at runtime. Reverse Routing via url_for() The router exposes a url_for() method that builds routes from target method names and arguments. Route name queries support absolute names (ControllerClass.method_name) or shorthand relative method names: Prefix Nesting Resolution Prefixes are merged compile-time to maintain path structure. For example, if you register a controller inside a module that has its own sub-prefix, url_for handles the combined path automatically: Query Parameter Appends Arguments that are not defined in the route parameter template are automatically appended to the path as query variables: Exception Handling If no controller matches the name query, the router raises a structured RouteNotFoundFault: Pattern Matching Dependency Injection )
Go to Homepage