creationix / haml-js

Haml ported to server-side Javascript. This is a traditional server-side templating language. Tested with node-js
MIT License
902 stars 110 forks source link

:plain filter #59

Open johannesjh opened 12 years ago

johannesjh commented 12 years ago

Please add a :plain filter to the haml-js implementation.

I find the :plain filter does not work and is not documented, is it just not implemented? It would come in handy for my purpose of writing code examples using the haml template language in https://github.com/bevry/docpad/

e.g. i would like to write a codeblock like this:

%pre
  :plain
     this is my sample code.
     syntax-highlighting will be done on the client-side
     i want newlines and spaces to be preserved.
ilich commented 12 years ago

:plain has not been implemented yet. Use :pre instead.

%html
  :pre
    this is my sample code.
    syntax-gighlighting will be done on the client-side
    i want new lines and spaces to be preserved
johannesjh commented 12 years ago

thanks for the hint, this solves my problem! ;-)