Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

:plain filter #59

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

:plain filter #59

johannesjh opened this issue Feb 12, 2012 · 2 comments

Comments

@johannesjh
Copy link

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
Copy link

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
Copy link
Author

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants