Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Dauros
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
Dauros
3y ago
Yes! HTMX is a better API on top of a XMLHttpRequest for this approach. A hypothetical next iteration of the HTML standard could make most of HTMX unnecessary. Maybe one day.
2.
▲
by
Dauros
3y ago
Usually we have a base template with a content block that a child template can extend. The extend keyword supports variables as well. So we can create a dummy base template, e.g. fragment_base.html, that contains only the content block an
3.
▲
by
Dauros
3y ago
It's already supported with the client-side-templates extension [1]. HTMX can fetch JSON from the backend then calls e.g. nunjucks.render() with the data. [1]: https://htmx.org/extensions/client-side-templates/
4.
▲
by
Dauros
3y ago
Not at all, you can preload as many data as you wish and use vanilla or a companion JS framework like Alpine.js or HyperScript or any web-component to make the current page interactive without fetching the backend. It's a trade-off bet
5.
▲
by
Dauros
3y ago
HTMX is basically a JavaScript framework that makes the traditional request-response approach feels like an SPA via replacing only part(s) of the current page with the response. In this case: it loads a small form, submits it to the backend
6.
▲
by
Dauros
3y ago
Because they are actually two distinct views: one is a details view, the other one is a form view. HTMX loads the form view and replaces the respective part of the page. But it needs to contact the backend for the form, you don't have
7.
▲
by
Dauros
4y ago
On the other hand this site also teaches the internet that eventually everything becomes a reaction-diffusion system/phase separating fluids [1]. [1]: https://www.karlsims.com/rd.html
8.
▲
by
Dauros
4y ago
HTMX helps you create an SPA-like experience without using a full SPA framework. You can utilize the full power of your favourite backend framework (e.g form validation, template-system, authorization, etc.) without writing JS code directly
9.
▲
by
Dauros
5y ago
Site bug report: on the pricing page the 'Use cases' and `Features` links in the footer are throwing errors in the browser console. I guess they are trying to jump to a specific section on the home page without going to the home p
10.
▲
by
Dauros
5y ago
Yes, Go templating is quite hard. There was a feature request[1] to implement the Django/Jinja2-like Pongo2 template engine[2], but got rejected because it would have been a too big change. [1]: https://github.com/gohug
11.
▲
by
Dauros
5y ago
You can combine HTMX with a SSG like Hugo and generate a bunch of partial HTML files that HTMX can load later on request. No server is required.
12.
▲
by
Dauros
5y ago
Joplin also have a few plugins [1], e.g. Obsidian-like graph plot of the notes [2,3], math mode [4], or tabs interface [5]. [1]: https://github.com/joplin/plugins/blob/master/README.md#plug... [2]: http
13.
▲
by
Dauros
5y ago
AFAIK the only one is Dramatiq [1] with dramatiq-pg [2]: a 3rd party message broker using Postgres LISTEN/NOTIFY. [1]: https://dramatiq.io/ [2]: https://gitlab.com/dalibo/dramatiq-pg/
14.
▲
by
Dauros
6y ago
> Refactoring shouldn't exist in this hypothetical game Without refactoring the factory planning phase would be more difficult since I don't want to fill the best places on the map with unmaintainable, non scalable factories. R
15.
▲
by
Dauros
6y ago
Gitg. Similar to gitk but with a nicer GTK GUI.