Dancer2
Dancer2 copied to clipboard
add Route attribute for storing extra data
This is a simple patch to Dancer2::Core::Route
I'd like to have considered. It would be useful to me in the development of a plugin for attaching additional information associated with routes. In my case, I'd like to associate routes with a title for a menu item.
This patch proposes adding a new attribute, xt_data
, for storing a hash reference for containing this kind of "extra data".
Look like it failed due to this issue: https://github.com/PerlDancer/Dancer2/issues/1483
It turns out I don't need this change for my module. Will leave for consideration, though.
Can you provide an example of how you planned to use this?
If we'd move forward with this, will also need docs and tests to support this change.
Thanks!
@sdondley One more ping before I close this out. Can you provide some guidance on how you planned to use this so we can discuss this?
Any neurons that once fired on this topic are long dead.
@sdondley thanks for getting back with me. I'm going to close this for now. If you remember what it was and want to discuss it, please feel free to add to this issue.