Crate tpnote_lib
source ·Expand description
The tpnote-lib
library is designed to embed Tp-Note’s core function in
common text editors and text editor plugins. It is dealing with templates
and input files and is also part of the command line application
Tp-Note. This library also
provides a default configuration in the static variable LIB_CFG
that can
be customized at runtime. The defaults for the variables grouped in
LIB_CFG
, are defined as constants in the module config
(see Rustdoc).
Tp-Note’s high-level API, c.f. module workflow
, abstracts most
implementation details. Roughly speaking, the input path correspond to
Tp-Note’s first positional command line parameter and the output path is
the same that is printed to stdout after usage. The main consumer of
tpnote-lib
’s high-level API is the module workflow
in tp-note
crate.
Modules
static
variable behind a mutex.
This makes it possible to modify all configuration defaults (and templates)
at runtime.Macros
NoteError::TeraTemplate from a
Tera::Error` .