plain
File-based router written in Go
Install
go install github.com/tsivinsky/plain/cmd/plain@latest
Usage
plain -p 5000
Pages
Put html files inside pages
directory and they will be available at corresponding routes.
Static files
Create public
directory and put static file there
Flags
Change port
plain -p 8080
Default: 5000
Change host
plain -H 192.168.0.103
Default: localhost
Start watcher
plain -w
This will tell plain to watch changes in pages
directory. If you create or delete file, plain will update routes accordingly.