Skip to content

New: Add pipe syntax support for function calls like in Jinja2, resolves #294 #296

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

navrocky
Copy link
Contributor

@navrocky navrocky commented Feb 9, 2025

Functions can now be chained together using the pipe syntax:

This syntax:

{{ ["B", "A", "C"] | sort | join(",") }}

equals to:

{{ join(sort(["B", "A", "C"]), ",") }}

@navrocky navrocky changed the title Add pipe syntax support for function calls like in Jinja2, resolves #294 New: Add pipe syntax support for function calls like in Jinja2, resolves #294 Feb 9, 2025
@navrocky navrocky force-pushed the feature/pipe-syntax branch 4 times, most recently from 8b02019 to 18c7a49 Compare February 13, 2025 19:55
@vowstar
Copy link
Contributor

vowstar commented Apr 13, 2025

All test passed after cherry pick this commit on latest master 2d1f0d0, could you rebase this branch? Thanks!

https://github.com/vowstar/inja/actions/runs/14428473681

@navrocky navrocky force-pushed the feature/pipe-syntax branch from 18c7a49 to 1943d6e Compare April 14, 2025 09:57
@navrocky
Copy link
Contributor Author

could you rebase this branch?

Done

@navrocky navrocky force-pushed the feature/pipe-syntax branch from 1943d6e to e0cecc2 Compare April 14, 2025 10:00
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.

2 participants