~ecs/wersh

wersh/example/_config.sh -rw-r--r-- 430 bytes
b5d8cd01Eyal Sawady Miscellaneous fixes 3 months 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"

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