martini-contrib / render

Martini middleware/handler for easily rendering serialized JSON, XML, and HTML template responses.
MIT License
245 stars 57 forks source link

"Value not found for type martini.Route" when injecting into templateFunc #24

Open cryptix opened 10 years ago

cryptix commented 10 years ago

Hi,

after seeing go-martini/martini@6779472c8685ba4fad5e879a4cb1c10d2fd0f71b i tried to build menus based on the active route. I sucessfully used the approach suggested in #3 for some other helpers and now tried to inject the current Route but I get a "Value not found" panic. I posted a small example here.

ps: i wasn't sure if i should post this on this repo or go-martini, because i couldn't make sense of the stacktrace and don't know if this issue is directly related to render but i guess so because i can use the injected route in normal request handlers.

ronna-s commented 9 years ago

+1

luiscarrasco commented 8 years ago

Did anybody come to a solution about this?