Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Use Jinja-like attribute substitution syntax #254
See motivation for this change in LibrePCB/librepcb-rfcs#14.
This PR changes the attribute substitution syntax from e.g.
Beside the disadvantage of the more verbose syntax (3 characters more), it has several advantages:
Maybe this sounds a bit over engineered at this time, but I think it's better to switch now (before the first release) to a more powerful, future-oriented syntax. After publishing the first release of LibrePCB it would be a pain to change the attribute substitution syntax...
Btw, if you wonder what the fallback feature is useful for, in the Multiple Key Substitution documentation there is a real-world use case explained.
How the most important attributes