6663cdc822d024e17d428035b5a4687b50a19110
[cmless] / bin / cmless.py
#!/usr/bin/python3
# (c) 2017 Aaron Taylor <ataylor at subgeniuskitty dot com>
# See LICENSE file for copyright and license details.
# Python imports
import sys
# CMless imports
import config, misc, template
def main():
print("Content-Type: text/html;charset=utf-8\n")
content = misc.load_file(config.site_template_prefix + "/" + config.template_file)
content = template.page_title(content)
content = template.site_title(content)
content = template.body(content)
print(content)
if __name__ == "__main__":
sys.exit(main())