aljoscha
unread,Jun 25, 2011, 4:17:47 AM6/25/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to middleman-users
I am currently struggling to get an understanding of how middleman
works.
The main question I have is this:
I want to have URL paths like "projects/houses", "projects/hotels"
etc., where the second part (type of project: houses, hotels) should
be flexible and
should come out of a data structure (preferably from the YAML data
API).
I would like to define only one view that receives the type as a
variable (like in rails routing "projects/:type") so that I don't have
to setup a view for each type
Still when I build the project, I want one static page per type, like
"projects/hotels/index.html" or "projects/hotels.html"
How would I accomplish that with middleman? Is it even possible?
Thanks for your help
Aljoscha