Skip to content

Ruby written vim plugin, that renders html from haml buffer

Notifications You must be signed in to change notification settings

rubytree/haml_buf2html

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

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

About

Ruby written vim plugin, that renders html from haml buffer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published