Show HN: Publican – an HTML-first static site generator for Node.js https://ift.tt/K2rSlPg
Show HN: Publican – an HTML-first static site generator for Node.js I'm Craig Buckler and Publican is my tiny, simple, fast, and free static site generator for Node.js. I've used several SSGs including Jekyll, Metalsmith, and Eleventy. Why build another? The main reason: personal preference. All SSGs have features that I need, features I don't need, and features they don't support. Publican implements just enough with flexibility to extend it using JavaScript. Publican templates use JavaScript literal ${ expressions } so there's no weird syntax to learn. You can also use !{ expressions } to output partially-built pages for runtime use in Express.js or elsewhere. Features include: - process any content: markdown, HTML, CSS, JavaScript, TXT, SVG, RSS, XML, etc. - simple JavaScript configuration - clean URL routing - automated navigation, pagination, directory, and tag index pages - built-in syntax highlighting - virtual content and templates (passed as strings) - extendable function hooks - use whatever client-side framework you like (or none!) - fast site build and file watch rebuild - full documentation at https://ift.tt/jbAa4t6 - starter themes at https://ift.tt/kPMlbWx You can install Publican using npm: https://ift.tt/gcYJ1wB The code is available at: https://ift.tt/0hriv2x Also available for Publican: - https://ift.tt/QPcXGAV - a hot-reloading development server - https://ift.tt/3N46HOT - a search engine for any static site All feedback is appreciated! https://publican.dev/ July 31, 2025 at 10:33PM
Komentar
Posting Komentar