xtemplate

A html/template-based hypertext preprocessor and rapid application development web server written in Go. (by infogulch)

Xtemplate Alternatives

Similar projects and alternatives to xtemplate

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better xtemplate alternative or higher similarity.

xtemplate reviews and mentions

Posts with mentions or reviews of xtemplate. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-10.
  • ETag and HTTP Caching
    4 projects | news.ycombinator.com | 10 Apr 2024
    I've also been dissatisfied with http caching not utilizing content hashes enough. If you're using server side templating one issue is that it's not efficient to calculate the hash while you're running the template, it would need to be precalculated to be efficient enough to use.

    So I wrote https://github.com/infogulch/xtemplate to scan all assets at startup to precalculate the hash for templates that use it, and if a request comes in with a query parameter ?hash=sha384-xyz and it matches then it gives it a 1 year immutable Cache-Control header automatically. If a file x.ext has a matching x.ext.gz/x.ext.zst/x.ext.br file then (after hashing the content to make sure it matches) client requests that support it are sent a compressed version streamed directly from disk with sendfile2. I call this "Optimal asset serving" (a bit bold perhaps).

  • Show HN: XRss: An RSS Reader and web stack demo powered by Htmx
    3 projects | news.ycombinator.com | 2 Sep 2023
    Yes, that would be useful. Basically, what you have in https://github.com/infogulch/caddy-xtemplate/blob/master/tem... - but without Caddy dependencies and with a way to use any router library (I use gorilla/mux).

    I would make the templates library take a callback function for every public template: func(method, path string, template).

    Then the user could add any custom logic to register the route handler and execute the template with any application specific inputs.

Stats

Basic xtemplate repo stats
3
68
9.1
21 days ago

infogulch/xtemplate is an open source project licensed under Apache License 2.0 which is an OSI approved license.

The primary programming language of xtemplate is Go.

Popular Comparisons


Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com