https://github.com/414owen/buss
Bottom Up Static Sites
https://github.com/414owen/buss
blaze-html clay css haskell html nix static-site-generator
Last synced: about 2 months ago
JSON representation
Bottom Up Static Sites
- Host: GitHub
- URL: https://github.com/414owen/buss
- Owner: 414owen
- License: mit
- Created: 2020-03-28T19:06:54.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-04-12T14:41:50.000Z (about 6 years ago)
- Last Synced: 2025-07-14T21:13:40.781Z (11 months ago)
- Topics: blaze-html, clay, css, haskell, html, nix, static-site-generator
- Language: Haskell
- Size: 20.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# buss - Bottom Up Static Sites
## For people who
* Want the full abstractive power of Haskell
* Like having a little server that reloads
* Prefer functions to templating systems
* Use nix
## Usage
Fork this repo, then:
### Run dev server:
```bash
nix-shell live.nix --run ./live.sh
```
### Generate static site:
```bash
nix-shell --run 'cd src; runhaskell Main.hs'
```
## Quickstart
Everything required to make your site should go in `src/`, this is where buss is run from.
The dev server reloads whenever a file in `src/` changes.
When the generator is run, the site will be put into `result/`.
The default renders XHTML5 with `blaze-html`, and CSS3 using `clay`, but you can change this to use your favourite web DSL, or you can read in and transform files.
For a more complete example website, see [owen.cafe](https://github.com/414owen/owen.cafe).