0.3.2 • Published 4 years ago

siteelm v0.3.2

Weekly downloads
3
License
Apache-2.0
Repository
github
Last release
4 years ago

demo: https://siteelm.netlify.com/ (source)

about

It's just another static site generator for Elm, but has some features.

  • you can write YAML in preamble sections
  • in a preamble, you can load external YAML files
  • it's easy to mix dynamic Elm components
  • simple rules to use

concept

to make a template, what you need to do is writing preamble models, their decoder, and two functions return Html Never (for HEAD and BODY)

usage

install

% npm install -g elm
% npm install -g siteelm

or if you'd like to do everything locally,

% npm install -D elm siteelm

in this case, type "% npx siteelm 〜" instead of "% siteelm 〜"

initialize project

% mkdir mysite
% cd mysite
% siteelm init

Then you'll see a scaffold in the directory.

developing

% cd mysite
% siteelm server -d

Then access "http://localhost:3000/"
The server supports file watching and auto reloading. If you don't need the server, use siteelm watch instead.

building

% cd mysite
% siteelm make -o
0.3.2

4 years ago

0.3.1

4 years ago

0.3.0

4 years ago

0.2.12

4 years ago

0.2.11

4 years ago

0.2.10

4 years ago

0.2.9

4 years ago

0.2.8

4 years ago

0.2.7

4 years ago

0.2.6

4 years ago

0.2.5

4 years ago

0.2.4

4 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.9

4 years ago

0.1.8

5 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago