Show HN: XRss: An RSS Reader and web stack demo powered by Htmx XRss is a simple RSS reader web app built to showcase xtemplate, a new web development tool based on Go's html/template and Caddy server. The entire site UI for XRss comes from a single HTML template file . This index.html includes everything from SQL queries and route definitions and handlers to htmx state transition attributes and tailwindcss classes, and developing it requires zero build steps (amortized). Check out the source which manages to be at once banal and gnarly: https://ift.tt/YNGDIj5... xtemplate preloads the whole template structure into memory and builds the router at startup, so responses to matching requests are rendered after a single lookup. Combined with direct queries to sqlite makes for a very snappy experience typically responding in less than 5ms. (Fingers crossed.) There are various places where XRss could be improved (PRs welcome!), but it already delivers on its purpose of demonstrating the plausibility of xtemplate. See the xtemplate readme for an overview of what you can do with it. I think of it as 'PHP but the syntax looks like Go templates'. https://ift.tt/DUGVIdb Let me know what you think! Does remaking PHP from scratch out of Go templates make me a lunatic? (yes) Is it a good idea anyway? (yes) What kind of web application do you think would be a good fit for a platform like this? https://ift.tt/a8Q6AGK September 2, 2023 at 08:32PM
Show HN: XRss: An RSS Reader and web stack demo powered by Htmx https://ift.tt/1P0aysw
Related Articles
Show HN: Me and my buddy made $20 with a Stripe link and a Tweet https://ift.tt/Fd50RNoShow HN: Me and my buddy made $20 with a Stripe link and a Tweet Hi th… Read More
Show HN: Type and Calculate Anything, Instantly. Numi like Calculator. https://ift.tt/AikuXlGShow HN: Type and Calculate Anything, Instantly. Numi like Calculator.… Read More
Show HN: LLM Powered Keyboard [video] https://ift.tt/YAOdocWShow HN: LLM Powered Keyboard [video] Hey HN, I'm excited to share Tai… Read More
Show HN: ARA Records Ansible and makes it easier to understand and troubleshoot https://ift.tt/IGAxfBjShow HN: ARA Records Ansible and makes it easier to understand and tro… Read More
Show HN: Infinitely Recyclable Plastic (PDK) from Berkley https://ift.tt/NkW0IJjShow HN: Infinitely Recyclable Plastic (PDK) from Berkley https://ift.… Read More
Show HN: A murder mystery game built on an open-source gen-AI agent framework https://ift.tt/knYCWzhShow HN: A murder mystery game built on an open-source gen-AI agent fr… Read More
Show HN: Fireworks Tap Toy https://ift.tt/dDPKhl8Show HN: Fireworks Tap Toy https://ift.tt/Bo8Ehg3 September 17, 2023 a… Read More
Show HN: I made a browser extension for building your own custom HN themes https://ift.tt/F67eds1Show HN: I made a browser extension for building your own custom HN th… Read More
0 Comments: