Closed danodonovan closed 5 years ago
This is a great idea, but it wouldn't be a backwards compatible change as others may be using this by passing a dictionary directly. It has been so long since I've worked on this that I forget how I originally was going about it. If you can update this to accept both cases I'll gladly merge it.
The preferred way is to pass the dict from the view as context. Adding ad hoc parsing of the dict from the template tag is going to be more error prone and harder to debug.
I was trying to use
url_extra_kwargs
in my project, and found that this was getting passed toBootstrapPaginationNode
andBootstrapPagerNode
as a string (keywords and args together). Not knowing a better way to pass a dict from template to django, I tweaked the code withtype munging. This was helpful to me, so I wondered if it might be helpful for you.
Great app btw!