pydocmaker.backend.ex_html

Attributes

__default_template

██████ ██████ ███ ██ ██ ██ ███████ ██████ ████████

Classes

html_renderer

Helper class that provides a standard way to create an ABC using

Functions

mk_link(id_[, label, pth, p0, v])

mk_tpl(id_[, label, pth, p0, v])

convert(doc[, template, template_params])

Module Contents

pydocmaker.backend.ex_html.__default_template = Multiline-String
Show Value
"""<!DOCTYPE html>
<html>
<head>
    <style>

    </style>
    {% if title %}
    <title>{{ title }}</title>
    {% endif %}
</head>
<body>

{% if applicables or references or acronyms %}
<h1>{References}</h1>
{% endif %}
{% if acronyms %}
<h2>List of Acronyms</h2>
<table>
{% for key, value in acronyms.items() %}
<tr><td><b>{{ key }}</b></td><td>{{ value }}</td></tr>
{% endfor %}
</table>
{% endif %}
{% if applicables %}
<h2>Applicable Documents</h2>
<table>
{% for key, value in applicables.items() %}
<tr><td><b>AD[{{ key }}]</b></td><td>{{ value }}</td></tr>
{% endfor %}
</table>
{% endif %}
{% if references %}
<h2>Reference Documents</h2>
<table>
{% for key, value in references.items() %}
<tr><td><b>RD[{{ key }}]</b></td><td>{{ value }}</td></tr>
{% endfor %}
</table>
{% endif %}

    {{ body }}

</body>
</html>

"""

██████ ██████ ███ ██ ██ ██ ███████ ██████ ████████ ██ ██ ██ ████ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ █████ ██████ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██

██████ ██████ ██ ████ ████ ███████ ██ ██ ██

pydocmaker.backend.ex_html.mk_tpl(id_, label=None, pth='show', p0='uib', v='v1', **kwargs)
pydocmaker.backend.ex_html.convert(doc: List[dict], template=None, template_params=None, **kwargs)
class pydocmaker.backend.ex_html.html_renderer

Bases: pydocmaker.backend.baseformatter.BaseFormatter

Helper class that provides a standard way to create an ABC using inheritance.

cnt_img = 0
cnt_table = 0
digest_text(**kwargs)
digest_latex(**kwargs)
digest_markdown(**kwargs)
digest_verbatim(**kwargs)
digest_image(**kwargs)
digest_table(children=None, **kwargs) str