Glyph

Results 362 issues of Glyph

Twisted only supports loading formally-correct XML in twisted.web.template, but browser-ish tag soup is the order of the day. We should use https://github.com/html5lib/html5lib-python for this.

feature

You can put a Deferred into a template so you kinda need to be able to put one into the JSON. here's the implementation, basically: https://gist.github.com/glyph/f1e7dc3143e35ff78d29395021d24f72

feature

Some elements of the page should be rendered in session-specific ways in the common template (navigation, footer, login form).

feature

`twisted.web.template` will take care of many places a `Deferred` might appear, but given that parts of `klein.Plating` aren't fully handled by it (the top-level value passed to `fillSlots` for example)...

feature

Right now it's based on the `?json=1` query string, which is convenient, but also slightly wrong; it's a workaround for people to manually type into their URL bar. It _should_...

feature

Sometimes I have a structure like this: ``` @route("/a/", branch=True) def some_tree(request): return static.File("...") @route("/a/foo/bar/special_thing.txt") def some_overlaid_resource(request): return EventSource(...) ``` I'd really like that second route to show up if...

feature

In the following Klein application: ``` python from klein import route, run @route("/something", branch=True, strict_slashes=False) def something(request): return None run("localhost", 8080) ``` Then `GET /something/else` will result in a 200...

improvement

Here's the way it looks in the direct buffer: ![image](https://user-images.githubusercontent.com/716529/64740924-c15b6800-d4ab-11e9-9ef6-8027a78e7f55.png) (Different colored identifiers are because I use `rainbow-identifiers-mode` which makes the problem more obvious, but disabling that doesn't change the...

I'm not sure which project this belongs in a request on, but: urn:ietf:wg:oauth:2.0:oob is a special redirect URL that indicates to some providers (google in particular) that the token code...