Skip to content

rustamli/snowpack-handlebars-starter

Repository files navigation

snowpack-handlebars-starter

Snowpack starter with Handlebars templating and Tailwind CSS built-in. Great for simple static websites

Highlights

  • If you want a framework-less static site generation
  • If you want to quickly turn data into webpages without complicated logic
  • A simple way to start with Tailwind CSS
  • HTML over wire approach for page navigation (to be improved in upcoming versions)

Features

  • Snowpack for super fast builds and super fast 🔥 Hot Module Replacement
  • Handlebars plugin. With automatic registration of templates and partials
  • Comes with PostCSS included
  • Tailwind CSS built in with @tailwindcss/typography included
  • YAML headers supported in Handlebars
  • Handlebars helpers integrated. Custom helpers are also supported
  • Turbolinks enabled in the sample template (updates pages without reloading)
  • CSV and JSON formats supported as inputs for your templates
  • Data transform scripts let you shape your data input with custom logic

Guides

Install

yarn

Start dev server

yarn start

Build for production

yarn build

Your output will be inside /build folder

About this project

This project is experimental at this stage. It is mainly used by me for building the next version of candygen - static site generator I've built in the past. Please reach out on twitter if you have questions or issues using it, I am interested in any feedback you might have

License

This project is licensed under the MIT License

About

Snowpack starter with Handlebars templating and Tailwind CSS built-in. Great for simple static websites

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published