frasco-subdomains

Subdomains awareness for Frasco


License
MIT
Install
pip install frasco-subdomains==0.1

Documentation

Frasco-Subdomains

Extract the subdomain variable from the request values

Installation

pip install frasco-subdomains

Setup

Feature name: subdomains

Options:

  • param_name: the name of the URL parameter

Usage

This feature will simply remove the parameter from the URL values before the request is dispatched and insert it again when building urls.

The value of the parameter is available using the $subdomain variable in the context.

To declare a subdomain for a blueprint, in its init.yml add:

subdomain: <subdomain>