f27f4933502d6a76bed8975587307ffd7da95bc6
# (c) 2017 Aaron Taylor <ataylor at subgeniuskitty dot com>
# See LICENSE file for copyright and license details.
def page_title(template
):
return template
.replace(config
.template_delimiter
+ keyword
+
config
.template_delimiter
, config
.site_name
+ " - " +
os
.environ
['REQUEST_URI'])
def site_title(template
):
return template
.replace(config
.template_delimiter
+ keyword
+
config
.template_delimiter
, config
.site_name
)
body
= misc
.load_file(config
.site_data_prefix
+ os
.environ
['REQUEST_URI'] +
config
.markup_file_extension
)
body
= misc
.process_markup(body
)
return template
.replace(config
.template_delimiter
+ keyword
+
config
.template_delimiter
, body
)