wip: get page from html module
This commit is contained in:
parent
4a5a741c2c
commit
a457c78610
|
@ -19,6 +19,7 @@
|
|||
import re, os
|
||||
import check, log, domain
|
||||
|
||||
page = ''
|
||||
Tyto = 'Tyto - Littérateur'
|
||||
tytogen = 'https://git.a-lec.org/echolib/tyto-litterateur'
|
||||
tytourl = 'https://tyto.echolib.re'
|
||||
|
@ -61,7 +62,7 @@ def translations():
|
|||
# includes wip.html #
|
||||
#------------------------#
|
||||
def html_main_page(wip_html):
|
||||
global post_date
|
||||
global post_date, page
|
||||
|
||||
# Source DB variables
|
||||
post_db = exec(open(check.curr_post_db).read(),globals())
|
||||
|
@ -342,5 +343,4 @@ def html_main_page(wip_html):
|
|||
msg_log = 'Use default footer in page. Unused file: %s'%files_tpl[2][0]
|
||||
log.append_f(check.post_logs, msg_log, 0)
|
||||
|
||||
print(page)
|
||||
|
||||
#print(page)
|
||||
|
|
|
@ -110,8 +110,6 @@ def manage_wip(file_post, Force):
|
|||
# Get Legacy contents from base64 markers
|
||||
convert_all_b64(wip_html.rsplit('\n'))
|
||||
|
||||
#print('> Article HTML:')
|
||||
#print(wip_html)
|
||||
|
||||
#print('> Article with Tabs:')
|
||||
tab_article(wip_html.rsplit('\n'))
|
||||
|
@ -119,6 +117,10 @@ def manage_wip(file_post, Force):
|
|||
# Create full page
|
||||
html.html_main_page(wip_html.rsplit('\n'))
|
||||
|
||||
wip_html = html.page
|
||||
print('> Article HTML:')
|
||||
print(wip_html)
|
||||
|
||||
|
||||
#============================#
|
||||
# HTML CONVERTERS #
|
||||
|
|
Loading…
Reference in New Issue