Good enough

Finally, I got my act together and installed WordPress in order to reactivate my home page. Installation was smooth, but my lack of CSS skills made the customization a not-so-pleasant trip. But, it’s good enough to get started.

I am planning to migrate the old content over piece by piece, let’s see how this goes. I had a lot of custom PHP tags in there, so I will have to fiddle around with regular expressions a lot.

I don’t like the template language of WP, however. It does not return objects, but rendered strings, which is a clear violation of the layering principle. For instance, I tried to put the links to pages in the header section (header of WP, not HTML). I expected to get an array or hash of pages and links to them, instead it returned a huge string of HTML with <li> and other stuff mixed in.

What if I don’t want to present the list of pages as a list? Well, I guess I had too much Rails lately …

Tags: ,

One Response to “Good enough”

  1. Homepage Familie Uhlig » Blog Archive » Rewriting Wordpress in Rails Says:

    [...] Earlier when I wrote that I didn&#8217;t like the template language WordPress uses, I also made the joke about rewriting WP in Rails. Well, today I thought &#8220;Let&#8217;s give it a try&#8221;. Not that I seriously want to rewrite WP, but I was curious to see how Rails can deal with legacy database schemas. [...]

Leave a Reply