~sircmpwn/wersh

ref: d830cf34efc753b17cdc26bb15a6a1e7f85dbcf2 wersh/example/_config.sh -rw-r--r-- 439 bytes
d830cf34Drew DeVault Add Makefile 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
pages="page-one.html.w page-two.html.w"

function page_title() {
    case $1 in
        page-one.html.w)
            echo "Page one"
            ;;
        page-two.html.w)
            echo "Page two"
            ;;
    esac
}

case $input in
    *.html.w)
        preprocessor="hoedown --tables --fenced-code"
        wsource _templates/layout.html.w
        ;;
    *.scss.w)
        preprocessor="sassc -s -t compressed"
        ;;
esac