Constant tpnote_lib::config::TMPL_HTML_EXPORTER
source · pub const TMPL_HTML_EXPORTER: &str = r#"<!DOCTYPE html>
<html lang="{{ fm_lang | default(value='en') }}">
<head>
<meta charset="utf-8">
<title>{{ fm_title }}</title>
<style>
{{ note_css }}
<!-- Customize the exporter CSS here -->
</style>
</head>
<body>
<table class="center">
<tr>
<th class="key">title:</th>
<th class="val"><b>{{ fm_title }}</b></th>
</tr>
<tr>
<th class="key">subtitle:</th>
<th class="val">{{ fm_subtitle | default(value='') }}</th>
</tr>
<tr>
<th class="keygrey">date:</th>
<th class="valgrey">{{ fm_date | default(value='') }}</th>
</tr>
{% for k, v in fm_all|
remove(var='fm_title')|
remove(var='fm_subtitle')|
remove(var='fm_date')
%}
<tr>
<th class="keygrey">{{ k }}:</th>
<th class="valgrey">{{ v }}</th>
</tr>
{% endfor %}
</table>
<div class="note-body">{{ note_body_html }}</div>
</body>
</html>
"#;
Expand description
HTML template used to render a note into html when the
rendition is saved to disk. Similar to HTML_VIEWER_TMPL
but does not inject JavaScript code.