rjlbew
Last Updated: February 25, 2016
·
1.058K
· justh
0b3ec71c2702887781dab1a26f245326

Midddleman Can't Nest Layouts with mixed file types.

While setting up a new Middleman Blog project, I ran into an issue with blog posts not rendering form a template with a wrap_template at the top. After a few hours of digging and checking every line for spelling/syntax, I discovered the issue was that the blog layout was an .erb file and was attempting to wrap layout.HAML. It seems Middleman doesn't handle mixed formats in this situation. Hope that saves someone else a little time and frustration.

Say Thanks
Respond