4 ms·
> I could slap something together with a few lines of Make or Python that does exactly what I need Here is a static page generator implemented in a 200 LOC Mak
by lqet 6y ago
> I could slap something together with a few lines of Make or Python that does exactly what I need
Here is a static page generator implemented in a 200 LOC Makefile: https://github.com/patrickbr/hagel https://github.com/patrickbr/hagel
- susam 6y agoStatic site generator in 130 lines of Python (excluding comments, docstrings, and blank lines): https://github.com/sunainapai/makesite https://github.com/sunainapai/makesite Disclosure: My wife developed this project.
- KajMagnus 6y agoo.O @cat $(dir $@).$(notdir $@).$(notdir $<).newlesc.tmp | tr -d '\n' | sed -e 's|\([$(ALLWD_VAR_CHRS)]*\)={{|\n\1={{|g' -e 's|\\\([^n]\)|\\\\\1|g' -e 's|/|\\/|g' -e 's|\&|\\&|g' | sed 's|\([$(ALLWD_VAR_CHRS)]*\)={{\(.*\)}}| s/$$$(strip $(subst .,,$(suffix $(patsubst %.info,%.category,$<)))){\1}/\2/|' > $@.var.sub.tmp So much `sed` and Bash one liners so I almost get a fight-or-flight reaction :- ) Edit: Now I see in the readme: > Error messages are for the most part cryptic errors from sed. Most of them are entirely useless to you. A quite honest readme & project :- )