Dancer2 icon indicating copy to clipboard operation
Dancer2 copied to clipboard

add Route attribute for storing extra data

Open sdondley opened this issue 6 years ago • 3 comments

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".

sdondley avatar Nov 11 '18 14:11 sdondley

Look like it failed due to this issue: https://github.com/PerlDancer/Dancer2/issues/1483

sdondley avatar Nov 11 '18 15:11 sdondley

It turns out I don't need this change for my module. Will leave for consideration, though.

sdondley avatar Nov 12 '18 13:11 sdondley

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!

cromedome avatar May 04 '22 21:05 cromedome

@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?

cromedome avatar Jul 30 '23 02:07 cromedome

Any neurons that once fired on this topic are long dead.

sdondley avatar Jul 30 '23 16:07 sdondley

@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.

cromedome avatar Jul 30 '23 21:07 cromedome