Thanks for the interesting project, I have started to experiment with it for an existing internal project. For one of the templates, I named a context key items like this:
@template
class MyTemplate(NamedTuple):
foo: Bar
items: List[Qux]
Running manage.py runserver completed without errors, however the page loaded while showing two "empty" <li> items, even though I supplied more than that. If I renamed items to objects the problem went away, so it is probably a naming clash with template.items:
Thanks for the interesting project, I have started to experiment with it for an existing internal project. For one of the templates, I named a context key
items
like this:And then in the client code:
Running
manage.py runserver
completed without errors, however the page loaded while showing two "empty"<li>
items, even though I supplied more than that. If I renameditems
toobjects
the problem went away, so it is probably a naming clash withtemplate.items
:https://github.com/silviogutierrez/reactivated/blob/19e3d99d057ba721c5f4d1aee50d3a6d2fa8105d/reactivated/templates.py#L79
I guess it would be nicer to warn users