priyatam / pie

A minimalist staticsite builder and router
Other
5 stars 0 forks source link

Move config path related logic into config #30

Closed priyatam closed 11 years ago

priyatam commented 11 years ago

Path related logic should be isolated, decoupled from all other functions.

Here's how:

  1. Merge user_config, sys_config logic from @main into into load_config
  2. load_config is now a dictionary with original yaml data and computed lookup data. For ex, path = config["recipe_root"] + os.sep + "templates" in load_dynamic_templates in bake.pyu

should now be as simple as config['templates_path'].

All other path related logic should be readily available as keys.