Haml_buf2html is a simple Vim plugin written in ruby, that renders html from haml directly in Vim. You can use it to write your plain html faster by writing it in haml or to preview how your haml will be rendered.
Make sure you have installed vim-ruby, rubygems and haml gem on your system.
Copy:
- haml_buf2html.vim file into your $VIMHOME/plugin directory
- haml_buf2html.rb file into your $VIMHOME/ruby directory
You can render html from haml buffer in 5 ways:
- as Vim output to see preview: or :call Haml2HtmlView()
- in new buffer: or :call Haml2HtmlNew()
- in new vsplitted buffer: or :call Haml2HtmlVNew()
- insert rendered html after cursor in current haml buffer: or :call Haml2HtmlInsert()
- overwrite current haml buffer (clear then insert): or :call Haml2HtmlOverwrite()
- Installation script
- Vimdoc
- Rails views
Haml_buf2html is released under MIT licence