Millimeter Preact Starter
A millimetr starting template with Preact integration
It intentionally has as little configuration and integrations as possible - allowing you to configure it how you want from the ground up.
Note that the CSS selectors in this demo follow the BEM convention. However you are welcome to restructure them according to your preferences.
Getting started
git clone https://github.com/millimetr/millimetr-default.git
npm install
npm start
Principles
- 📄 That HTML templates are written in EJS
- 🤖 The
millimetr.config.js
file is central to this starter. - 👓 No hidden behaviour, everything is documented via
millimetr.config.js
file. - ⚛️ Preact, Preact Hooks and HTM included as
<script>
tags via HTML - 🚫 No JavaScript transpilation is included in this starter
Example routes
/
: The basic landing-route./hardcoded
: Illustrates how hardcoded values can be passed to route templates./dynamic
: Illustrates how dynamically generated values can be passed to route templates./remote
: Illustrates how remote data can be fetched and passed to route templates.