require 'potatochop/version'
require 'sinatra/base'

module Potatochop
  class Web < Sinatra::Base
    get '/' do
      "Hello worldz."
    end
  end
end

require 'potatochop/version'
require 'sinatra/base'
require 'haml'

module Potatochop
  class Web < Sinatra::Base
    get '/*.html' do
      file_path = File.join(settings.working_dir, "#{params[:splat][0]}.html.haml")
      if File.exists? file_path
        Haml::Engine.new(File.read(file_path)).render
      else
        404
      end
    end
  end
end

Add the first draft of the haml processor
Add the first draft of the haml processor
