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

Provide a string replace function for template renderer #27

Closed
j1n6 opened this issue Sep 20, 2014 · 5 comments
Closed

Provide a string replace function for template renderer #27

j1n6 opened this issue Sep 20, 2014 · 5 comments
Labels

Comments

@j1n6
Copy link
Contributor

j1n6 commented Sep 20, 2014

No description provided.

@j1n6 j1n6 added the feature label Sep 20, 2014
@j1n6 j1n6 changed the title Provide a String regex function for template renderer Provide a string replace function for template renderer Sep 25, 2014
@j1n6 j1n6 mentioned this issue Sep 25, 2014
@apriendeau
Copy link
Contributor

@activars are you talking about something like this?

reqrep ^([^\\ ]*\\ /)[a-zA-Z0-0\\-\\_]*[/]?(.*)    \\1\\2

I think this should be an option. Thoughts??

@j1n6
Copy link
Contributor Author

j1n6 commented Nov 13, 2014

thanks for the suggestion.
I think the initial thought was providing a regex replacement function can be used in template. It allows replacing identifier used in Marathon to something that Haproxy can handle. I would like to hold this feature because Marathon 0.7.4 introduced app versioning with healthchecks, a proper way to handle this may related to versioning.

@apriendeau
Copy link
Contributor

So the use case that we had, was to take /app1/ but send it to / which is why I was asking if that if this was related to that because it would be nice to send that through API. I didn't want to create a duplicate issue.

@j1n6
Copy link
Contributor Author

j1n6 commented Nov 13, 2014

yup - it certainly can be used for this scenario.

@j1n6
Copy link
Contributor Author

j1n6 commented Apr 18, 2015

closed by #115

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants