Added basic template functionality.
[cmless] / bin / cmless.py
CommitLineData
acd291ea
AT
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
d955cfad 7import sys
acd291ea
AT
8
9# CMless imports
d955cfad 10import config, misc, template
acd291ea
AT
11
12def main():
13 print("Content-Type: text/html;charset=utf-8\n")
14
d955cfad
AT
15 content = misc.load_file(config.site_template_prefix + "/" + config.template_file)
16 content = template.tpl_title(content)
17 content = template.tpl_body(content)
18 print(content)
acd291ea
AT
19
20if __name__ == "__main__":
21 sys.exit(main())