-
Notifications
You must be signed in to change notification settings - Fork 28
examples: add {axum,poem,rocket,warp} by translating the actix-web example; book: add frameworks section #308
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
0705389
to
473b922
Compare
I replaced the previous htmx example with the "greet-me" example. I think my htmx example may have been a good show case how to use htmx with axum, but a bad rinja example. |
4d3317c
to
9798b3e
Compare
0c039bb
to
ce61077
Compare
0537c88
to
2316dae
Compare
2316dae
to
06c322f
Compare
06c322f
to
9a8979b
Compare
@@ -0,0 +1,56 @@ | |||
{#- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not a valid css comment. ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh wait, now I got it. You normally never inline CSS into HTML, very bad idea.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's mentioned in _layout.html
, that normally you should not do that. :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Put it in cap. :3
|
||
{#- | ||
In a real application you most likely would want to link style sheets, | ||
any JavaScripts etc. using e.g. `actix-files`, instead of embedding the content |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Todo: find what to use in warp
instead of actix-files
.
|
||
{#- | ||
In a real application you most likely would want to link style sheets, | ||
any JavaScripts etc. using e.g. `actix-files`, instead of embedding the content |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Todo: find what to use in axum
instead of actix-files
.
9a8979b
to
63ca3e5
Compare
|
||
## Actix-Web | ||
|
||
To convert the `String` to an HTML response, you can use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For each framework, we should link to their example in the repository.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea! Added.
63ca3e5
to
da8d645
Compare
AFAICS, the only remaining big+active web-framework that is missing is salvo. But I guess this PR is more than big enough. And I don't want to read any more framework docs for a while. :) |
Looks good to me, thanks a lot! |
There's a bug in readthedocs right now that prevents the build process: readthedocs/readthedocs.org#11912 |
No description provided.