| 1 | #!/usr/bin/python3 |
| 2 | |
| 3 | # (c) 2017 Aaron Taylor <ataylor at subgeniuskitty dot com> |
| 4 | # See LICENSE file for copyright and license details. |
| 5 | |
| 6 | # Python imports |
| 7 | import sys |
| 8 | |
| 9 | # CMless imports |
| 10 | import config, misc, template |
| 11 | |
| 12 | def main(): |
| 13 | print("Content-Type: text/html;charset=utf-8\n") |
| 14 | |
| 15 | content = misc.load_file(config.site_template_prefix + "/" + config.template_file) |
| 16 | content = template.page_title(content) |
| 17 | content = template.site_title(content) |
| 18 | content = template.current_year(content) |
| 19 | content = template.body(content) |
| 20 | print(content) |
| 21 | |
| 22 | if __name__ == "__main__": |
| 23 | sys.exit(main()) |