~sircmpwn/wersh

ref: 10c8d5d77af1f0aaee73dc7c39d68b873d5a4c76 wersh/example/_config.sh -rw-r--r-- 440 bytes
10c8d5d7Drew DeVault Remove -w from readme 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.sh
        ;;
    *.scss.w)
        preprocessor="sassc -s -t compressed"
        ;;
esac