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