Skip to content

Latest commit

 

History

History
28 lines (21 loc) · 904 Bytes

README.markdown

File metadata and controls

28 lines (21 loc) · 904 Bytes

Emacs support for using the Sinatra web development DSL

This includes...

  • a major mode combining ruby-mode and haml-mode for your main sinatra file
  • a command sinatra-console \C-;c for quickly running irb in your sinatra environment
  • a command sinatra-web-server \C-;w for quickly running your sinatra web-server in an Emacs comint buffer allowing jumping from errors to source
  • bundled with some basic ruby modes

To use sinatra_el...

  1. add this directory to your load path
  2. add this to your .emacs init file (require 'sinatra)
  3. open your sinatra application file, and run M-x sinatra-mode

Note: due to limitation of MuMaMo-mode you must add the following haml comment line

-#end-of-file

to the bottom of your file for haml mode to turn on following the __END__ marker