Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Info file variables #20

Closed
bennyboer opened this issue Jul 23, 2020 · 3 comments
Closed

Info file variables #20

bennyboer opened this issue Jul 23, 2020 · 3 comments
Labels
enhancement New feature or request good first issue Good for newcomers info thingy
Milestone

Comments

@bennyboer
Copy link
Owner

bennyboer commented Jul 23, 2020

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 bennyboer added enhancement New feature or request good first issue Good for newcomers thingy info labels Jul 23, 2020
@bennyboer bennyboer added this to the v0.2 milestone Jul 23, 2020
@bennyboer bennyboer modified the milestones: v0.2, v0.1 Sep 28, 2020
@bennyboer
Copy link
Owner Author

This is rather important, thus pushed to v0.1

@bennyboer bennyboer self-assigned this Sep 29, 2020
@bennyboer
Copy link
Owner Author

Predefined variables will be done with #51

bennyboer added a commit that referenced this issue Sep 29, 2020
@bennyboer
Copy link
Owner Author

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#.

@bennyboer bennyboer removed their assignment Sep 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers info thingy
Projects
None yet
Development

No branches or pull requests

1 participant