haml filters for markdown etc

Can’t ever remember how to do filters in haml, despite it being stupid easy:

Full doc here: http://haml-lang.com/docs/yardoc/file.HAML_REFERENCE.html

Haml Filters

The colon character designates a filter. This allows you to pass an indented block of text as input to another filtering program and add the result to the output of Haml. The syntax is simply a colon followed by the name of the filter. For example,


%p
  :markdown
    Textile
    =======

    Hello, *World*

Current filter choices: plain, javascript, cdata, escaped, ruby, preserve, erb, sass, textile, maruku

Short URL for this post: http://tmblr.co/Z8iXbyVnc-Q