Handlebars.java
submit-site-to-marginalia-search
Handlebars.java | submit-site-to-marginalia-search | |
---|---|---|
2 | 1 | |
1,428 | 6 | |
- | - | |
8.2 | 8.9 | |
about 18 hours ago | 5 days ago | |
Java | Python | |
GNU General Public License v3.0 or later | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Handlebars.java
-
Full Time
The blog is just hugo so it's 100% static files over nginx.
The search engine is serverside-rendered mustache templates via handlebars[1], via served via spark[2]. It's basically all vanilla Java. I do raw SQL queries instead of ORM, which makes it quite a bit snappier than most Java applications. The sheer size of the database also mandates that basically every query is a primary key lookup. The code is written around that constraint.
Although the search engine is a bit on the slow side since it's routed through cloudflare and I think I'm relatively far away from the closest datacenter so it adds like 100ms to the load times.
[1] https://github.com/jknack/handlebars.java
[2] https://sparkjava.com/
-
Spring Boot & HTMX ?
tl;dr - if you are working with Spring Boot, the main way to build a web UI is either Thymeleaf or maybe https://github.com/jknack/handlebars.java with HTMX and _hyperscript and/or Alpine.js. If you aren't really into CSS if you couple those with something like https://picocss.com/ you can build pretty good looking stuff pretty fast. Honestly if you go through setting that stuff up you will be in a good spot to keep going with other stuff later.
submit-site-to-marginalia-search
-
Full Time
https://github.com/MarginaliaSearch/submit-site-to-marginali...
What are some alternatives?
Thymeleaf - Thymeleaf is a modern server-side Java template engine for both web and standalone environments.
MarginaliaSearch - Internet search engine for text-oriented websites. Indexing the small, old and weird web.
FreeMarker - Apache Freemarker
javalin.github.io - Javalin website source code
Apache Velocity - Mirror of Apache Velocity Engine
submit-site-to-marginali
Pebble - Java Template Engine
Mustache.java - Implementation of mustache.js for Java
Jtwig Project - Java modern template engine
JsonBatch - An Engine to run batch request with JSON based REST APIs
oh-my-email - 📪 可能是最小的 Java 邮件发送库了,支持抄送、附件、模板等功能。
jte - Secure and speedy templates for Java and Kotlin.