How to render a partial in sinatra view (haml in haml)?
I have a simple sinatra app that uses haml and sass for the views. One of the views (located in the views folder) is a partial for my navigation menu. I am trying to render it from index.haml but I get the following error: wrong number of arguments (1 for 2) I am trying to render it with the following lines in index.haml .navigation = render :partial => "nav" kfl62 EDIT: !!! OUTDATED !!! Read Jason's answer below! What are you trying works in rails ! Sinatra has no partial method. An implementation of partial on Sinatra looks like this (source gist) from github: module Haml module Helpers def