- Overview
- Routing
- Proxy Routes
- React
- Quick Start
- Fetching Data from API
- fetch() API
- Populating Page's Head
- Importing CSS/Sass
- TypeScript
- Excluding Bundle from Client-Side
- Markdown and MDX
- Node.js / JavaScript
- Query Parameters
- POST, PUT, PATCH, DELETE Methods
- Dynamic Routes (Pretty URL Slugs)
- fetch() API
- TypeScript
- Sessions
- CORS and Express Middlewares
- HTML
- Vue
- Svelte
- Static Files
- Python
- Before You Start
- Printing To Console
- JSON Response
- URL Parameters
- Requirements.txt
- Dynamic Routes (Pretty URL Slugs)
- POST Data
- File Upload
- Deployment
- Security
- How Zero Works
HTML
Zero doesn't just serve HTML as is. URLs to scripts, styles, media, and other HTML files are extracted and compiled. The references are rewritten in the HTML so that they link to the correct output files. All filenames should be relative to the current HTML file.
Zero's HTML bundler is powered by Parcel.
Note: When linking to other HTML pages, do not put .html
at the end ie. Use <a href="/about">
instead of <a href="/about.html">
. This tells underlying Parcel builder to code split correctly and not bundle about.html
with this page.