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
Here are some things that should be added to klein.Plating to make it really complete, which were left out of the initial implementation (#118) to keep it compact:
Something on the input side, for conveniently parsing JSON post bodies and handling form data submission - something that doesn't involve handling state in memory, by the way, since that doesn't scale. (Is there even a way in werkzeug's routing syntax to extract a query arg as a python parameter, or doe sit only accept path segments?) form handling #126
attr.s support - specifically, automatically invoking asdict so applications can work entirely in terms of nice data structures and not manually decompose things into dicts and lists attr.s support for klein.plating #127
pluggable renderer support. the example even has a great use-case: latitude and longitude are conventionally presented as "east" and "west", "north" and "south", not positive and negative numbers. We may want to present an individual serializable value in a different way. I think that the way to do this might be @plating.renderer("blub") def blubrender(plated_data, request, tag): "..." to stuff things into a specific renderer's element. Still not sure how to do composition / renderer libraries nicely, but at the very least you could write a function and then do add_utility_renderers(my_plating)pluggable renderers for klein.Plating #128 and "common navigation" rendering for klein.Plating #130 - closely related, possibly resolvable with the same implementation
Here are some things that should be added to klein.Plating to make it really complete, which were left out of the initial implementation (#118) to keep it compact:
XMLFile
support XMLFile loader for klein.Plating #121XMLString
as implied by "plating" decorator for quickly constructing simple sites #89's basic prototype support XMLString loader for klein.Plating #122attr.s
support - specifically, automatically invokingasdict
so applications can work entirely in terms of nice data structures and not manually decompose things into dicts and lists attr.s support for klein.plating #127@plating.renderer("blub") def blubrender(plated_data, request, tag): "..."
to stuff things into a specific renderer's element. Still not sure how to do composition / renderer libraries nicely, but at the very least you could write a function and then doadd_utility_renderers(my_plating)
pluggable renderers for klein.Plating #128 and "common navigation" rendering for klein.Plating #130 - closely related, possibly resolvable with the same implementation:list
renderer :list renderer in klein.Plating should support dictionaries, and fill slots with their values #161The text was updated successfully, but these errors were encountered: