== Textile Malt supports Textile via RedCloth. Lets say we have a Textile document called 'test.tt' containing ... h1. Example This is an example of Textile rendering. We can redner the textile document via the universal render function. Textile documents are recognized by the +.textile+ or +.tt+ extension. html = Malt.render(:file=>'tmp/test.tt') html.assert.include?('

Example

') Malt supports Textile via either the RedCloth or the ___ backend. Lets say we have an Textile document called 'test.tt' containing ... h1. Example This is an example of Textile rendering. We can access the file via the +Malt.file+ method. Textile documents are recognized by the +.textile+ or +.tt+ extension. tile = Malt.file('tmp/test.tt') We can the convert the document to a Malt Html object via the #to_html method. html = tile.to_html Notice that the output is an instance of Malt::Format::HTML. html.class.assert == Malt::Format::HTML And that by calling #to_s we can get the rendered HTML document. html.to_s.assert.include?('

Example

') Or we can convert the document directly to HTML via the #html method. out = tile.html out.assert.include?('

Example

')