You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use-case: we have a list of things which have a display name, an interesting attribute, and an internal ID. We want to render something like <tr><td><a href="id">display name</a></td><td>interesting attribute</td></tr> for each one - a pretty standard list view.
Problem: right now each element in the list is just filled as the item slot, which means in order to accomplish this we need to build a separate widget.
Suggested solution: if klein encounters a dict, instead of doing fillSlots(item=_extra_types(item)), it should do fillSlots(**item); then the template for the list can be self-contained.
The text was updated successfully, but these errors were encountered:
Use-case: we have a list of things which have a display name, an interesting attribute, and an internal ID. We want to render something like
<tr><td><a href="id">display name</a></td><td>interesting attribute</td></tr>
for each one - a pretty standard list view.Problem: right now each element in the list is just filled as the
item
slot, which means in order to accomplish this we need to build a separate widget.Suggested solution: if klein encounters a dict, instead of doing
fillSlots(item=_extra_types(item))
, it should dofillSlots(**item)
; then the template for the list can be self-contained.The text was updated successfully, but these errors were encountered: