Skip to content
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

requesting an htmx server-side tutorial or example that doesn't use a 'web framework' #3099

Open
ludicrousdisplay opened this issue Dec 31, 2024 · 4 comments · May be fixed by #3104
Open

requesting an htmx server-side tutorial or example that doesn't use a 'web framework' #3099

ludicrousdisplay opened this issue Dec 31, 2024 · 4 comments · May be fixed by #3104
Labels
documentation Improvements or additions to documentation

Comments

@ludicrousdisplay
Copy link

As far as I can tell, all of the Server-Side Examples on the htmx site involve the use of some sort of web-framework.

Providing a server-side example of the use of htmx with a simple http-server would be well received, given htmx's interest in focus on the simplicity and power of hypertext.

If such an example already exists, then can it be added to the server-side examples page and also placed at the top of the page as a starting point?

Thanks :)

@ludicrousdisplay
Copy link
Author

@ludicrousdisplay
Copy link
Author

@Telroshan Telroshan added the documentation Improvements or additions to documentation label Jan 6, 2025
@Telroshan
Copy link
Collaborator

Telroshan commented Jan 6, 2025

I may be nitpicking, but you say

all of the Server-Side Examples on the htmx site involve the use of some sort of web-framework

Yet the 2 examples linked above use Javalin, which describes itself as

A simple web framework for Java and Kotlin

Not beating the framework allegations! 😄

@ludicrousdisplay
Copy link
Author

Yes, it is true that Javalin describes itself as a web framework however it is also a 'simple' web framework, and the examples I have found indicate that Javalin can be used as a simple http server with support for mapping handlers to routing.

I have also looked at sparkjava (which hasn't had any updates since Jetty 9), and spark-11 (which is an updated fork) however these don't seem to have broad support. And I briefly looked at Java's simplehttpserver but to my knowledge it is oracle-licensed so it would be irresponsible of me to suggest that as well.

If anyone can suggest a simpler approach than Javalin, and that doesn't depend on an Oracle library, please chime in.

@Telroshan Telroshan linked a pull request Jan 9, 2025 that will close this issue
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants