- 24 Feb, 2019 19 commits
-
-
berumuron authored
-
berumuron authored
-
berumuron authored
-
berumuron authored
-
berumuron authored
... I hope.
-
berumuron authored
-
berumuron authored
-
berumuron authored
-
berumuron authored
-
berumuron authored
-
berumuron authored
-
berumuron authored
-
berumuron authored
-
berumuron authored
-
berumuron authored
-
berumuron authored
-
berumuron authored
-
berumuron authored
-
berumuron authored
-
- 23 Feb, 2019 3 commits
-
-
berumuron authored
If a directory under the article directory contains a `serie.html` file, we load it as a "serie" page.
-
berumuron authored
We'll soon introduce the series in the code itself. They will be defined by a `serie.html` file in an article folder. So pages might appear while we are loading articles. The consequence is that we must write pages after loading the articles. Also, the static files are loaded at the end so there are never erased.
-
berumuron authored
The main function begins to be a bit heavy, this first step only extracts confusing code in named functions so they are a bit more clear.
-
- 29 Jan, 2019 2 commits
- 26 Jan, 2019 1 commit
-
-
berumuron authored
-
- 25 Jan, 2019 6 commits
-
-
berumuron authored
-
berumuron authored
-
berumuron authored
-
berumuron authored
We now create a full mini Python program to manage all the template rendering. It will help to manage `if` and `for` statements. The `Code` class hides the indentation complexity and execution.
-
berumuron authored
This class will help us to manage indentation later and hide complexity of the code execution.
-
berumuron authored
Instead of creating a `rendering` variable directly in our `render` method, we create a mini Python program which is evaluated by an `exec` function. It will be helpful to handle the `if` and `for` statements because we will be able to rely on the Python interpretor behaviour to manage the variable scopes. It is probably not the most elegant nor the most secure way to do it, but it's the cheapest one and it's fine in our situation.
-
- 19 Jan, 2019 1 commit
-
-
berumuron authored
-
- 11 Jan, 2019 8 commits