
import os

def get_bare_html_page(
            css_filename="pres",
            ):
    """
    generate empty html page to populate
    """
    bare_html_prefix = os.linesep.join([
        "<!DOCTYPE html>",
        "<html>",
        "<head>",
        "<link rel=\"stylesheet\" type=\"text/css\" href=\"%s.css\">"%(
            css_filename),
        "</head>",
        "<body>",
        ""],
        )
    bare_html_suffix = os.linesep.join([
        "",
        "</body>",
        "</html>"])
    return bare_html_prefix, bare_html_suffix

def get_link_str(
        tgt_page_name,
        link_name):
    """
    get string corresponding to an html link
    """
    return "<a href=\"%s.html\">%s</a>"%(tgt_page_name, link_name)

def get_numbering_str(
        numbering):
    """
    get string corresponding to an html link
    """
    return "<p>%d</p>"%(numbering)



import os

def get_bare_html_page(
            css_filename="pres",
            ):
    """
    generate empty html page to populate
    """
    bare_html_prefix = os.linesep.join([
        "<!DOCTYPE html>",
        "<html>",
        "<head>",
        "<link rel=\"stylesheet\" type=\"text/css\" href=\"%s.css\">"%(
            css_filename),
        "</head>",
        "<body>",
        ""],
        )
    bare_html_suffix = os.linesep.join([
        "",
        "</body>",
        "</html>"])
    return bare_html_prefix, bare_html_suffix

def get_link_str(
        tgt_page_name,
        link_name):
    """
    get string corresponding to an html link
    """
    return "<a href=\"%s.html\">%s</a>"%(tgt_page_name, link_name)

def get_numbering_str(
        numbering):
    """
    get string corresponding to an html link
    """
    return "<p>%d</p>"%(numbering)


generate empty html page to populate get string corresponding to an html link get string corresponding to an html link