Spacerobots:

  • Archive
  • RSS
  • Ask me anything

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

    • #haml
    • #development
  • 2 years ago
  • Permalink
  • Share
    Tweet

About






A place for me (Matt Petty aka lodestone) to stream and splay stuff. I'm an entrepreneur and ruby developer with a love of life, great fiction (mostly the science or fantasy variety), and drink.


Follow/Stalk me:
  • Forrst
  • Twitter
  • Facebook
  • Working w/ Rails

Also, I like words

Twitter

loading tweets…

  • RSS
  • Random
  • Archive
  • Ask me anything
  • Mobile

Effector Theme by Carlo Franco.

Powered by Tumblr