Constant tpnote_lib::config::TMPL_HTML_VIEWER
source · pub const TMPL_HTML_VIEWER: &str = r#"<!DOCTYPE html>
<html lang="{{ fm_lang | default(value='en') }}">
<head>
<meta charset="UTF-8">
<title>{{ fm_title }}</title>
<link rel="stylesheet" href="{{ note_css_path }}">
<style>
<!-- Customize the viewer 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>
<script>{{ note_js }}</script>
</body>
</html>
"#;Expand description
HTML template to render regular viewer pages.
We could set
#[cfg(feature = "viewer")],
but we prefer the same config file structure independent
of the enabled features.