So, I have resurrected the blog!
There were some victims – at one of the transitions along the way, many of my posts got truncated to just ‘summary’ length and the ‘real data’ is gone. (Moment of silence.) Moving on to brighter and better things.
Wordpress was able to connect to my textile database and inhale all my posts. (Thanks!) Unfortunately, it was all in Textile markup. And they didn’t seem to plan on supporting that.
What to do?
I made a quick YAML config to store database options in, config.yml:
1 2 3 4 5 6 7 8 | |
I didn’t hard code it in the doc so I could generically do this kind of thing later if I wanted.
And then, the cowboy perl to inhale the markup and go from Textile to HTML, using the handy Formatter::HTML::Textile:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | |
And in a fraction of a second, all my old blog posts were converted, in all their (arguable) glory. From now on I’m only blogging in XHTML, suckers.
Update: 08/2010, moment of silence as I am back-converting from HTML to Markdown. Sigh.