[][src]Constant tp_note::config::TMPL_ANNOTATE_CONTENT

const TMPL_ANNOTATE_CONTENT: &str = "\
---
title:      {{ sort_tag ~ file_stem | json_encode }}
subtitle:   {{ 'Note' | json_encode }}
author:     {{ username | json_encode }}
date:       {{ now() | date(format='%Y-%m-%d') | json_encode }}
lang:       {{ get_env(name='LANG', default='') | json_encode }}
revision:   {{ '1.0' | json_encode }}
---

[{{ sort_tag ~ file_stem ~ '.' ~ extension }}\
]({{ sort_tag ~ file_stem ~ '.' ~ extension }})

";

Default template used when the command-line parameter points to an existing non-.md-file. Can be modified through editing the configuration file. The following variables are defined: {{ dirname }}, {{ file_stem }}, {{ extension }}, {{ note-extension }} {{ sort_tag }}, {{ username }}, {{ lang }}, {{ path }}. In addition all environment variables can be used, e.g. {{ get_env(name=\"LOGNAME\") }} When placed in YAML-front-matter, the filter | json_encode must be appended to each variable.