diff --git a/src/var/lib/tyto/program/html.py b/src/var/lib/tyto/program/html.py new file mode 100644 index 0000000..1db253a --- /dev/null +++ b/src/var/lib/tyto/program/html.py @@ -0,0 +1,48 @@ +#!/usr/bin/env python3 +# Name: Tyto - Littérateur +# Type: Global functions for HTML page +# Description: Create final HTML Page +# file: html.py +# Folder: /var/lib/tyto/programs/ +# By echolib (XMPP: im@echolib.re) +# License: GNU AFFERO GENERAL PUBLIC LICENSE Version 3, 19 November 2007 + +#------------ +# funny stats +#------------ +# lines: +# functions: +# comments: +#---------------------------------------------------------------------- + +#********************************************************************** +import check, log, domain + +def html_main_page(): + # Source DB variables + post_db = exec(open(check.curr_post_db).read(),globals()) + + # Metas in HTML page + scale = 'width=device-width, initial-scale=1.0' + visit = '3 days' + title = '%s %s %s'%(post_title, domain.sep_titles, domain.domain_title) + tags = '%s,%s'%(domain.domain_tags, post_tags) + + metas = '\n' + \ + '\n'%scale + \ + '\n' + \ + '\n' + \ + '\n'%visit + \ + '\n'%domain.domain_lang + \ + '\n'%domain.domain_mail + \ + '\n'%domain.domain_license + \ + '\n' + \ + '\n'%title + \ + '\n'%post_author + \ + '\n'%post_about + \ + '\n'%tags + \ + '\n'%post_date + \ + '