Skip to main content Module templates Copy item path Source PrintfileData Data for original hypermail-style %x single-character template substitution,
matching the printfile() function in the original hypermail printfile.c. default_article_template Returns the default article body template (%ARTICLE%). default_footer_template Returns the default footer HTML template. default_header_template Note: CSP includes ‘unsafe-inline’ in style-src because embedded images in txt2html.rs
use inline style attributes (style=“max-width:100%;height:auto”) for responsive sizing. get_header_cookies Builds the initial cookie map with standard header values (title, stylesheet, metadata, etc.). load_article_template Loads the article template from .hm_article in dir, or returns the default. load_footer_template Loads the footer template from .hm_footer in dir, or returns the default. load_header_template Loads the header template from .hm_header in dir, or returns the default. load_template Loads a template file by path, returning None if it cannot be read. set_cookie Sets a key-value pair in the cookie map. substitute_cookies Replaces %KEY% placeholders in a template with values from the cookie map. substitute_printfile Perform original hypermail printfile()-style %x substitution on a template string. unset_cookie Removes a key from the cookie map. CookieMap