~sircmpwn/wersh

ref: bcc3fbaf8d1e19c262290916967a524cb2111d37 wersh/README -rw-r--r-- 813 bytes
bcc3fbafDrew DeVault Initial commit 3 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
wersh

Static site generation with POSIX shell scripts, loosely inspired by werc[1].

USAGE

wersh [-w] [input] [output]

Sources [input]/**.sh and writes the output to [output]/**. Input defaults to ./
and output defaults to _site/.

Files that don't match *.sh are copied directly. Files and directories that
match _* are not used.

When your script executes, the working directory is set to input.

The special file _config.sh will be sourced for all scripts if present.

-w will use inotifywait to watch for changes, then automatically recompile your
site. This is only supported on Linux.

EXAMPLES

See example/ for an example wersh site. Run the following:

    ./wersh example
    lighttpd -Df lighttpd.conf

Then browse to http://localhost:8080 to check out the example site.

[1] http://werc.cat-v.org/