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

[questinon] make map with parameters #155

Closed
spouk opened this issue Sep 3, 2016 · 4 comments
Closed

[questinon] make map with parameters #155

spouk opened this issue Sep 3, 2016 · 4 comments
Labels

Comments

@spouk
Copy link

spouk commented Sep 3, 2016

How to create ways to map the parameters to be used in the logic in templates, for example:
in template

{{if eq $path "/posts/:posts" }} some logic {{end}}

but I can not do, router provides the only way to end without the possibility of multiple selection

{{if eq $path "/posts/somearticle" }} some logic {{end}}

this really suxx.

I try make mapper use adress memory handler for key + path, but httprouter use radix tree and fucken handler have one stupid memory address for multiple handlers.

@julienschmidt
Copy link
Owner

Sorry, but the question as given makes no sense to me.
If the question still exists, please add example code.

@falmar
Copy link

falmar commented Oct 20, 2016

Seems he wants to compare or to know if the current url match the pattern.

@julienschmidt
Copy link
Owner

#139 ?

@xDarkicex
Copy link

You can make the view a variable and pass the view in the method and then
do logic on it in view template.

On Thursday, October 20, 2016, Julien Schmidt [email protected]
wrote:

Sorry, but the question as given makes no sense to me.
If the question still exists, please add example code.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#155 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AIb-Vihf8Vtb-lV8hcisEfnnyz3UvkFFks5q17wKgaJpZM4J0Tog
.

similark pushed a commit to similarweb/httprouter that referenced this issue May 9, 2023
* Make imagePullPolicy configurable

Signed-off-by: Lucas Santos <[email protected]>

* Fix tests

Signed-off-by: Lucas Santos <[email protected]>

* Pass on config from main

Signed-off-by: Lucas Santos <[email protected]>

Co-authored-by: Aaron Schlesinger <[email protected]>
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

4 participants