Routes

You will find them in

./app/routes

Monk plays with Sinatra, so make sure you are familiar with Sinatra’s documentation.

In Monk, your routes must have this structure:

class Main
  get "/" do
    haml :home
  end

  ...
end

Actually, Monk ships with two sample routes located in app/routes/home.rb and app/routes/css.rb. The first one is like a hello world, something you can take a look at and modify at pleasure. The route for CSS is a convenient way to process your Sass files stored in app/views/css.

Next: Views