&root = . HTML_TEMPLATE = main.html !html = | &(root)/templates/footer.html \ |> ^ html %f^ \ pandoc --from markdown --to html \ --template=&(root)/templates/$(HTML_TEMPLATE) \ --css &(root)/css/style.css \ --include-in-header=&(root)/templates/header.html \ --include-before-body=&(root)/templates/nav.html \ --include-after-body=&(root)/templates/footer.html \ %f | sed 's|%%webRoot%%|&(root)|g' > %o \ |> %B.html