1
Fork 0
This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
theorangeone.net-legacy/project/common/data.py
Jake Howard 97601a7b53 Refactor view code
- Compress codebase
- Remove duplicate bulky code
- Use template directory to dictate sitemap
2016-04-05 19:38:09 +01:00

8 lines
247 B
Python

import os.path
import yaml
def generate_config(base_dir):
default = yaml.load(open(os.path.join(base_dir, 'data/context.yml'))) or {}
page = yaml.load(open(os.path.join(base_dir, 'data/page_context.yml'))) or {}
return default, page