Created
May 23, 2012 20:48
-
-
Save tilarids/2777702 to your computer and use it in GitHub Desktop.
Simplest 'static blog generator' concept
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SRC should be specified | |
OUTPUT_FILES=$(shell find ${SRC} -type f -exec echo {}.html \;) | |
all: ${OUTPUT_FILES} | |
echo "All is done" | |
%.md.html : %.md | |
python -c "import markdown; md = markdown.Markdown(extensions=['meta']); md.convertFile('$^', '$@')" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment