apiad / auditorium

An HTML+CSS+JS generator from pure Python code
https://apiad.net/auditorium
81 stars 13 forks source link

Make `Show` stateless #21

Closed apiad closed 4 years ago

apiad commented 4 years ago

Refactor Show methods such as do_markup and do_code so that all logic is executed against a local context (something like a dict that passes through the functions), so that there is no show state stored in the Show instance.