clemens/later_dude — pull request #11 by michaek (2012-10-12 16:39:02+00:00)
Title: Add support for changing tagnames.

Hi there. I really appreciate a simple approach to rendering a calendar!

My use case required rendering without tables - the idea is that it's more semantic and responsive, though I understand that's debatable. :)

So here's the idea: allow a hash in the options for :html_tags, defaulting to the current tags used by the gem, but allowing us to provide our own tags in our implementation. I've also conditionally disabled some attributes that would be illegal on elements other than TD/TH.

I've provided a test case, and the existing tests pass (not to mention that the output still looks ok in practice when I remove my custom :html_tags hash).

I hope this proves useful!