[][src]Constant tp_note::config::TMPL_NEW_CONTENT

const TMPL_NEW_CONTENT: &str = "\
---
title:      {{ dirname | 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 }}
---


";

Default content-template used when the command-line argument is a directory. Can be changed through editing the configuration file. The following variables are defined: {{ dirname }}, {{ file_stem }}, {{ extension }}, {{ note-extension }} {{ sort_tag }}, {{ username }}, {{ date }}, {{ 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.