From: Chad Fowler Date: 2004-04-17T04:34:06+09:00 Subject: Re: Ruby blogs On Sat, 17 Apr 2004, Jim Weirich wrote: # # Ian Macdonald said: # > A second question regarding other mark-ups: has anyone added support for # > RedCloth, BlueCloth, etc.? I just want to know, before I set about doing # > it myself. # # To do this, you need to write a converter, put it in the converters # directory and then include it in your main blog script. Given that the # bluecloth library handles the details of text=>html conversion, all you # need is a few glue methods. Look at the existing converters for example. # # I did this in about 15 minutes for BlueCloth, starting from scratch and # never looking at a converter before. Its really that easy. # # > One thing I wish I could do with rublog, however, is store my articles # > in .rhtml files and embed Ruby code in them, for execution by eRuby. It # > doesn't seem to be set up to do this. Am I mistaken about this or do I # > need to add this functionality myself? # # Again, this is a matter of writing a converter. I've not used eruby, but # if you can call eruby to turn a text string into HTML, then this would be # as trivial as the BlueCloth conversion. # I wonder if it would be easier to use ERb than eRuby. You might try it if you find eruby difficult. I believe it's included with Ruby these days? # Seriously, I'm terribly impressed with how easy it is to extend Rublog # (Great job Dave!). I'd love to hear Chad's talk at the O'Reilly Open # Source Convention # (http://conferences.oreillynet.com/cs/os2004/view/e_sess/5322). # Me too! I wonder what I'm going to say. :) Chad