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

Re-implement Bottlerocket template system for Out-of-tree Builds #3133

Closed
6 of 7 tasks
cbgbt opened this issue May 19, 2023 · 0 comments · Fixed by #3633
Closed
6 of 7 tasks

Re-implement Bottlerocket template system for Out-of-tree Builds #3133

cbgbt opened this issue May 19, 2023 · 0 comments · Fixed by #3633
Assignees
Labels
area/core Issues core to the OS (variant independent) area/settings Issues related to our settings handling status/in-progress This issue is currently being worked on type/enhancement New feature or request

Comments

@cbgbt
Copy link
Contributor

cbgbt commented May 19, 2023

Related to #2669

What I'd Like:
We need to be able to express settings dependencies for templates as described by the design document in #2834. This would allow the settings system to determine what settings and at what versions the API should render templates.

As an example, a template might look something like this:

[required-extensions]
motd = { version = "v1', helpers = ["boldface"] }
+++
Today's motd is {{ settings.motd }}

Let's pretend that the `motd` extension gives us a custom helper for boldfacing text {{ boldface "like this" }}.

Where the settings required are specified in a header called "frontmatter" and the template body is given as a string below.

To do:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/core Issues core to the OS (variant independent) area/settings Issues related to our settings handling status/in-progress This issue is currently being worked on type/enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant