An open API service indexing awesome lists of open source software.

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

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).