Documentation
¶
Overview ¶
Package main demonstrates an HTTP server that compiles LESS files on-the-fly.
This example creates a web server that serves LESS files as CSS, compiling them dynamically on each request. Useful for development environments.
Usage:
go run main.go # Then visit http://localhost:8080/styles.less
The server will:
- Serve .less files as compiled CSS
- Serve static files from the current directory
- Optionally cache compiled CSS for better performance
Click to show internal directories.
Click to hide internal directories.