You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# TODO: Should this be called from a config file for easier testing?
site_vars: dict = {
"SITE_TITLE": "Untitled Site",
"SITE_URL": "https://example.com", # TODO: #73 Make this http://localhost:8000
}
Currently the site_vars are hard-coded into the site.__init__() so if you pass in any site_vars, it overrides the default.
If these were separate, then you could partially update site_vars and then pass it into the site.__init__().
My suggestions is to store the vars in a config file, and then load them into the site.__init__() along with any manual site_vars (they could also load from config).
Currently thought is to use JSON as it most similar to dictionary which is what the site_vars are.
Future
Allow multiple config options including json, cfg, yaml, and pyproject.toml
The text was updated successfully, but these errors were encountered:
https://github.com/kjaymiller/render_engine/blob/81971b54aca229bc1ee295909f2e874a40759e20/src/render_engine/site.py#L25-28
Currently the
site_vars
are hard-coded into thesite.__init__()
so if you pass in any site_vars, it overrides the default.If these were separate, then you could partially update
site_vars
and then pass it into thesite.__init__()
.My suggestions is to store the vars in a config file, and then load them into the
site.__init__()
along with any manual site_vars (they could also load from config).Currently thought is to use JSON as it most similar to dictionary which is what the site_vars are.
Future
The text was updated successfully, but these errors were encountered: