I’m using Middleman PHP. In my config.rb I have activated directory_indexes.
Problem is that this only works for files that are rendered as HTML-files. So “about.haml” becomes “/about/index.html”.
I have a “contact.php.erb” page, but that gets rendered as “/contact.php”.
Is there some way to include “set :index_file, “index.php”” in my config.rb in an if / else statement? So I can have the directory indexes for both HTML & PHP pages?