:plain filter #59

Open
johannesjh opened this Issue Feb 12, 2012 · 2 comments

Comments

Projects
None yet
2 participants
@johannesjh

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

This comment has been minimized.

Show comment Hide comment
@ilich

ilich Feb 13, 2012

: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

ilich commented Feb 13, 2012

: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

This comment has been minimized.

Show comment Hide comment
@johannesjh

johannesjh Feb 14, 2012

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment