Namespaces
Objectives
In this section we are going to evolve our use case. We’re going to use a Firefox add-on called Foxy Proxy.
Prerequisites
We assume that Rougail’s library is installed on your computer.
It is possible to retrieve the current state of the various Rougail files manipulated in this tutorial step by checking out the corresponding tag of the
rougail-tutorialsgit repository. Each tag corresponds to a stage of progress in the tutorial. Of course, you can also decide to copy/paste or download the tutorial files contents while following the tutorial steps.
If you want to follow this tutorial with the help of the corresponding rougail-tutorials git repository, this workshop page corresponds to the tags 1.1_180 to 1.1_181 in the repository.
git clone https://forge.cloud.silique.fr/stove/rougail-tutorials.git
git switch --detach 1.1_180
Namespace
The purpose here is not to teach you how to use the Foxy Proxy addon, but rather to explain that using this Firefox plugin will require us to make decisions about how to organize our variables.
We will store them in namespaces.
Variables related to the Foxy Proxy plugin will be stored in a separate namespace.
New “FoxyProxy” namespace
For those who follow the tutorial with the help of the git repository
Now you need to checkout the 1.1_181 version:
git switch --detach 1.1_181