I'm making a simple static site with Sinatra for my portfolio.
I want several pages under /profile
like /profile/history
and /profile/education
By following the official documentation, I can achieve this by:
get "/profile/history" do
...
end
get "/profile/education" do
...
end
It become redundant. Is there DRY way to do this? Maybe adding a class
or something?
Thanks