ddba9639ab8eb555b11d7805611c148041e79ede
[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.tpl_title(content)
content = template.tpl_body(content)
print(content)
if __name__ == "__main__":
sys.exit(main())