Home > haml_buf2html

haml_buf2html

Haml_buf2html is a project mainly written in RUBY and VIM SCRIPT, it's free.

Ruby written vim plugin, that renders html from haml buffer

haml_buf2html

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.

Instalation

Before you install

Make sure you have installed vim-ruby, rubygems and haml gem on your system.

How to install

Copy:

  • haml_buf2html.vim file into your $VIMHOME/plugin directory
  • haml_buf2html.rb file into your $VIMHOME/ruby directory

Usage

You can render html from haml buffer in 5 ways:

  1. as Vim output to see preview: or :call Haml2HtmlView()
  2. in new buffer: or :call Haml2HtmlNew()
  3. in new vsplitted buffer: or :call Haml2HtmlVNew()
  4. insert rendered html after cursor in current haml buffer: or :call Haml2HtmlInsert()
  5. overwrite current haml buffer (clear then insert): or :call Haml2HtmlOverwrite()

Todo

  • Installation script
  • Vimdoc
  • Rails views

Licence

Haml_buf2html is released under MIT licence

Previous:aq2cfg