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: Hacker News for AI News https://ift.tt/adGYCiyShow HN: Hacker News for AI News https://aihackers.ai August 29, 2023 … Read More
Show HN: Mu – A Micro App Platform https://ift.tt/WZRMTUpShow HN: Mu – A Micro App Platform Hey all Sharing a new piece of work… Read More
Show HN: PicnicHR – Simple HR and time-off tracking for your team https://ift.tt/mEsQbIeShow HN: PicnicHR – Simple HR and time-off tracking for your team Hey … Read More
Show HN: Preserve your families legacy for CENTURIES https://ift.tt/Z8MLmeyShow HN: Preserve your families legacy for CENTURIES Hey everyone, cre… Read More
Show HN: Why AI data should be self hosted https://ift.tt/DW8z12RShow HN: Why AI data should be self hosted https://ift.tt/Re2Bfh5 Augu… Read More
Show HN: Tiny Dream – Header Only, Embedded Stable Diffusion C++ Library https://ift.tt/Gb9pBdMShow HN: Tiny Dream – Header Only, Embedded Stable Diffusion C++ Libra… Read More
Show HN: Dozens of fractals implemented in Rust and OpenGL https://ift.tt/ihvIWDQShow HN: Dozens of fractals implemented in Rust and OpenGL https://ift… Read More
Show HN: a simple shell script that opens random past HN front pages https://ift.tt/DInW1LwShow HN: a simple shell script that opens random past HN front pages h… Read More
0 Comments: