-
2017-02-06
"It might be that pythonistas really don’t like monkey patching, but as I couldn’t find a quick answer on how to mock time in Python I thought I write down here how I did it.
It’s no big deal really, just replace datetime in the module tested with a local implementation. In my case I wanted to to mock datetime.utcnow and to match the call I created a class with utcnow as a static method."
-
2015-04-13
"I just released 0.3.0 of my static blogging tool Sinor.
Major new features in this release:
Tags support Markdown can be used in archive pages Improved command line API It can be installed either by pip install sinor or by downloading it directly from Github."
-
2015-03-02
"Almost a year and a half ago, I wrote about how I had built my own blog frameworky thing. In that post I wrote that I was happy with the result. Unfortunately, it didn’t last long.
The problem was that the tool I had built did too much. It found all the markdown files, converted them to HTML using Mustache templates and wrote the result to other files. All paths etcetera were hardcoded, the code was tied to the content in a way I strongly diskliked."
-
2013-11-22
"I have slowly realized that Jekyll isn’t for me. After evaluting a few alternatives like Pelican I decided to write my own, and I have to say that I’m happy with the result.
Not that what I have written is better than Jekyll in any measurable way, but it just that it suits my needs. For example: I use Mustache templates which I strongly prefer over Liquid, and as the Python Markdown library supports metadata and Pygments code formatting out of the box, I find that the original post format is clearer."