Open rocher opened 5 months ago
Some ideas for future features:
[ ] Enable environment variables:
PATH
[ ] Conditional variables:
{{var1?var2}}
var1
var2
{{var1="value"?var2:var3}}
value
var3
[ ] Predefined variables: some variables could be automatically defined, e.g.
mold-day-of-month
mold-year
mold-version
[ ] Comments: literals that won't appear in the final document;
{{! this is a comment}}
[ ] In-memory variable substitution
Some ideas for future features:
[ ] Enable environment variables:
PATH
is not taken from the environmentPATH
can be defined in a toml file or in the environment; when in both, toml file has preference[ ] Conditional variables:
{{var1?var2}}
: replace withvar1
ifvar1
is defined, otherwise withvar2
{{var1="value"?var2:var3}}
: ifvar1
is equal tovalue
then replace withvar2
, otherwise withvar3
[ ] Predefined variables: some variables could be automatically defined, e.g.
mold-day-of-month
,mold-year
,mold-version
, ...[ ] Comments: literals that won't appear in the final document;
{{! this is a comment}}
is replaced always with the empty string[ ] In-memory variable substitution