This is a autopost bolg frinds we are trying to all latest sports,news,all new update provide for you
Wednesday, December 3, 2025
Show HN: Niccup – Hiccup-Like HTML Generation in ~120 Lines of Pure Nix https://ift.tt/yEQgRJs
Show HN: Niccup – Hiccup-Like HTML Generation in ~120 Lines of Pure Nix Yesterday I saw https://ift.tt/8s7SupB (Nixtml: Static website and blog generator written in Nix) and before I clicked on it, I thought it was gonna be a polished version of something I've hacked together myself in the past few weeks, but it was something else, so since seeing it, I've been polishing my hacked together Hiccup-alternative made with Nix, and I think it's good enough for some feedback from the outside world :) The basic premise is to take a Nix expression like this: [ "div#main.container" { lang = "en"; } [ "h1" "Hello" ] ] And turn it into HTML like this:
Nothing more, nothing less. Just "Nix Expressions/Data > HTML". If you've used hiccup ( https://ift.tt/z0iv5HZ ) before this will be immediately familiar to you, native data types in arrays transformed into HTML, and it matches really well with Nix! Kind of almost took me by surprise. I've made some more involved examples available on the website, where the website itself is also dynamically generated with niccup: https://embedding-shapes.github.io/niccup/ And if that wasn't enough, I also added a quine example on the website itself, which if you copy-paste the two files you get a built version of the page itself: https://embedding-shapes.github.io/niccup/examples/quine/ (this was probably the most tricky and fun part of this whole project, so worth mentioning separately for sure) I've used it to generate documentation websites and some smaller projects so far, but hasn't been used by others before, so I'm eager to hear what people think about it! Thank you for reading and your temporary attention! GitHub repository: https://ift.tt/7jFluEY (~800 lines of Nix in total, main implementation src/lib.nix is only ~120 lines though) The source of the blog itself: https://ift.tt/Fu8rRcT.... (~150 lines of Nix) https://embedding-shapes.github.io/introducing-niccup/ December 4, 2025 at 01:16AM
Subscribe to:
Post Comments (Atom)
Show HN: PHP-fts – Full-text search engine in pure PHP, no extensions https://ift.tt/wgSBiJP
Show HN: PHP-fts – Full-text search engine in pure PHP, no extensions https://ift.tt/WpBoNzV May 7, 2026 at 01:58AM
No comments:
Post a Comment