bennyboer / thaw

Hierarchical organizable and versionable document tool with export to PDF
MIT License
4 stars 1 forks source link

Info file variables #20

Closed bennyboer closed 3 years ago

bennyboer commented 4 years ago

The info file is just a simple properties file that may contain variables like:

author.name = Benjamin Eder
author.email = ...

There are two kinds of variables:

The predefined ones need to be included as meta-data to the PDF file that is generated.

The custom ones should be usable in the *.tdt file: for example #VAR, author.name# should be replaced with the defined variable value.

bennyboer commented 3 years ago

This is rather important, thus pushed to v0.1

bennyboer commented 3 years ago

Predefined variables will be done with #51

bennyboer commented 3 years ago

Example

grafik

TDI

encoding = UTF-8
language = de

var.version = 0.1.0

TDT

The document version is #VAR, var.version#.
Additionally you don't need the `var` prefix, but it is a nice way
to separate variables from other values that may have another function like `encoding`.
Still you might also just display the encoding value in this document: #VAR, encoding#.