God, Love, News, Event, Entertainment, Amebo,..... All about Bringing out the best in you...
Show HN: Dstpierre/tpl a tiny lib making Go's templates more tolerable https://ift.tt/uyedSIt
Show HN: Dstpierre/tpl a tiny lib making Go's templates more tolerable Hey, I'll start by saying I've had the authors of templ and Gomponents in my podcast and often use them. But sometimes Go HTML templates is just what I need, and I never remember how the freaking parsing works so I have base layout and partials available. I created tpl a long time ago and after running in prod for awhile now, I decided to release the v1. It's nothing ground breaking, just a simple helper package that brings translations and i18n and an opiniated structure and parsing for Go HTML templates. There's some sane data structure that are mostly always used in all project, things like CurrentUser, Locale, Alert (for flash notification) and some Django's inspired template function like map, intcomma, naturaltime, etc. Hope it can helps other, I'm using it which make it enough for me ;). Dominic https://ift.tt/OKBiq98 July 5, 2025 at 01:18AM
Subscribe to:
Post Comments (Atom)
Show HN: A CSS 3D Engine (no WebGL) https://ift.tt/SUqpDON
Show HN: A CSS 3D Engine (no WebGL) https://ift.tt/Y23D6Q8 June 1, 2026 at 03:58AM
-
submitted by /u/Dull_Tonight [link] [comments] source https://www.reddit.com/r/worldnews/comments/pehy48/housing_secretary_robert_je...
-
Show HN: The Ordeal Visualizer I'm this time-blind... https://ift.tt/iNM3UDr July 8, 2025 at 12:20AM
-
Show HN: A Spotify player in the terminal with full feature parity https://ift.tt/oZgrl1Q July 18, 2024 at 02:57AM
No comments:
Post a Comment