I blog when I go abroad, and occasionally when I do stuff in the UK too. There's a nicer interface over here.

Monday, April 27, 2009

simple django+yaml file generator

EDITED to change its name.
EDITED to change its name again! What was I thinking? It should always have been called pork.py.

I was trying to write a website for PORK, but I fail massively at HTML, CSS, design, all of that nonsense. And I'm bored, a bit. Watching The Business on Channel 4 HD despite having seen it about 5 times before (I love it). So, rather than do anything useful, I've done a stereotypically daft, over-engineered, off-on-a-tangent avoiding-the-real-problems thing and knocked up a tool -- which countless other people (me included) have already implemented in the past -- to generate what I need... though of course I still need to write the source templates, so it hasn't actually done me any good at all.

Yes, it's another simple static file generator.

This one uses django+yaml to do its stuff. After some cursory investigation it seems there are already a couple of "lightweight static file generators" that do similar things, but frankly none of them seem as lightweight as mine. It's one file, 100-odd lines but ~75% docs, comments and whitespace. It does the job for me, maybe it does the job for someone else. I called it pork.py. Mmm.

I don't go for the github way of doing things, and nor do I tend to go back to something once it reaches a usefulness limit to me personally -- so if by some miracle you do like this and want it to do more, just take it, extend it, publish it, put your name on it, I really don't care.

No comments: