Jaymon / bang

A static site generator with support for RSS feeds, sitemaps, and Google Amp
MIT License
13 stars 0 forks source link

config context hierarchy #33

Closed Jaymon closed 5 years ago

Jaymon commented 7 years ago

as the config gets buried into with statements it should keep a history of all the contexts it has switched to and I should make sure it moves back to them in order:

with config.context("foo"):
    with config.context("bar"):
         with config.context("che"):
              # should be in che context here
         # should be in bar context here
    #should be in foo context here
# should be in "" context here

This might already work, but I should have a test making sure it works