-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Filters/macros/function for Vector's template syntax #2063
Comments
We could use |
The projects I'd flagged as worth investigating for this were, in no particular order: |
I've been using Tera through Zola for my website and it feels very decent. Vector (given our erb templates for our website) might prefer liquid though! |
I would love to see Vector offer something that was more Linux Shell meets SQL (see below). If this capability were available it could unify template and transform syntax. Example
|
Hi @modularinput, have you seen the Vector Remap Language that we're planning to release in 0.12? That should fill the void here. |
Hello @binarylogic. Thanks for pointing this out. Here are my first impressions after reviewing the docs.
It is clear I need to read more and try it out first. Just wanted to give you my initial thoughts.
Reference 2I think the following would be easier to read and write.
Reference 3I don't have quality feedback for this yet, but hope to after giving it a try. This is what I think I understand from the first read over:
|
This has been discussed in a variety of issues (...), but we don't have an actual issue open for this work.
Motivation
Our template syntax is very limited in its current form and we've had a number of customers request ways to extend this (#1846, #1692, #1440, #1926 (comment))
Prior Art
Proposal
We should support "modifiers" or "filters" within our template syntax. For example:
Filters
We can use the prior art as a basis, but at the very least we should have:
These are most useful for dynamic partitioning.
The text was updated successfully, but these errors were encountered: