-
Notifications
You must be signed in to change notification settings - Fork 94
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
Needs a different way of working with VCL functions #122
Comments
For now it would help having prepends/appends on all functions, not just select few. For example, vcl_deliver only has the option to replace the entire function, without a prepend option, while vcl_rcv has both. If you'd like, I'll PR the change, but would prefer not going through the hassle if it's not going to get merged anyway. Let me know what you think! Cheers! |
@smaslennikov Just PR it ;) Someone will use it. And as you see, there is a need for it. Maintainers need the help of the community. As you see, there are many open issues, but not PRs at all. |
Is this what you're looking for? |
I also thought about functions which created some code blocks from hashes. This would probably make it quite easier on the user. Pls check this idea out. |
Hi @kwisatz and @smaslennikov ! I am working on some ideas, and would like to know your opinion on them, plus @maxchk 's. I thought about some helper functions which could be used in the templates, which would turn simple arrays and/or hashes into full blocks of code. Something like:
Ends up in:
The function should be flexible enough to test different request parameters (besides Does this sound good? |
Folks, Since commenting on this, I've changed jobs and haven't used the word Puppet (except in vain) in months. I'm glad this module is resuming strong development, but unfortunately, I don't think I can be of my help here. Cheers! |
[Issue #122] Add prepend and append sections for sub vcl_deliver
Since we got quite a traction, I added the same stuff for the sub |
I gave up on the idea of ruby functions to create |
[Issue #122] Add prepend and append sections for sub vcl_backend_response
@EmersonPrado Does the merged PR close this issue? |
@luyseyal I'd think so. At least, it's all I can think of about. I'd like to hear from the OP, but I don't know if he's following. |
The current way of completely replacing VCL functions is not very practical since it also removes essential parts such as for instance the inclusion of backend selectors, etc.
I don't currently have a concrete idea of what it should look like, any ideas welcome!
The text was updated successfully, but these errors were encountered: