You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Sometimes one would like to write dynamic content to a file. This works with the render hook inside templates.
Unfortunately some files need to be merged from different templates. My concrete example is the domains.txt from dehydrated.
I'd like to create a template for each hostname I configure in Nginx. When I use RENDER to render this file with the HOSTNAME argument, the previous content is replaced.
Describe the solution you'd like
I'd like to use something like this inside a template:
Is your feature request related to a problem? Please describe.
Sometimes one would like to write dynamic content to a file. This works with the render hook inside templates.
Unfortunately some files need to be merged from different templates. My concrete example is the domains.txt from dehydrated.
I'd like to create a template for each hostname I configure in Nginx. When I use RENDER to render this file with the HOSTNAME argument, the previous content is replaced.
Describe the solution you'd like
I'd like to use something like this inside a template:
This would check if the line exists inside the file, and if it doesn't appends it.
Describe alternatives you've considered
I can run a custom command inside the jail, which works, but is not very convenient:
The text was updated successfully, but these errors were encountered: