If I understand you right, haml[1] is the right thing for you! [1]: http://haml-lang.com 2010/2/27 Claus Folke Brobak <cfb / jndata.dk>: > RDoc can be used to convert a string, possibly with RDoc "tags", to > HTML. > Example: > > require 'rubygems' > require 'rdoc/markup/to_html' > > h = RDoc::Markup::ToHtml.new() > puts h.convert('== Section 2') # Output : "<h2>Section 2</h2>" > > The string could be the contents of a text file, and this is a > functionality I use very often as a way to generate an HTML file from a > text file. > > I was wondering if YARD can be used the same way, that is, to generate > HTML from plain text, possibly with RDoc "tags"? > > I have not been able to find anything along these lines in the YARD > documentation. > > Claus > -- > Posted via http://www.ruby-forum.com/. > > -- Gru, Benedikt