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

feat(templates): add multiline helper functions #6227

Merged
merged 5 commits into from
Nov 4, 2023

Conversation

james-d-elliott
Copy link
Member

This adds some multiline helper functions to the templates engine. Specifically 'mquote', 'msquote', and 'mindent' which are helper functions which when presented with multiline strings have similar behaviour to their similarly named counterparts. The 'mindent' function takes an additional input after the indent number which indicates the YAML multiline formatter to add if it's a multiline string.

This adds some multiline helper functions to the templates engine. Specifically 'mquote', 'msquote', and 'mindent' which are helper functions which when presented with multiline strings have similar behaviour to their similarly named counterparts. The 'mindent' function takes an additional input after the indent number which indicates the YAML multiline formatter to add if it's a multiline string.

Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
@authelia
Copy link

authelia bot commented Nov 4, 2023

Artifacts

These changes are published for testing on Buildkite, DockerHub and GitHub Container Registry.

Docker Container

  • docker pull authelia/authelia:feat-templates-multiline
  • docker pull ghcr.io/authelia/authelia:feat-templates-multiline

Copy link

netlify bot commented Nov 4, 2023

Deploy Preview for authelia-staging ready!

Name Link
🔨 Latest commit 91ca910
🔍 Latest deploy log https://app.netlify.com/sites/authelia-staging/deploys/6546bb598b76bb000876cb85
😎 Deploy Preview https://deploy-preview-6227--authelia-staging.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Nov 4, 2023

Deploy Preview for authelia-staging ready!

Name Link
🔨 Latest commit 04d0ece
🔍 Latest deploy log https://app.netlify.com/sites/authelia-staging/deploys/6546bb63149bb30008ee21e6
😎 Deploy Preview https://deploy-preview-6227--authelia-staging.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
@james-d-elliott james-d-elliott enabled auto-merge (squash) November 4, 2023 22:27
@james-d-elliott james-d-elliott merged commit 00725ec into master Nov 4, 2023
45 checks passed
@james-d-elliott james-d-elliott deleted the feat-templates-multiline branch November 4, 2023 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants