middleman/middleman — pull request #1338 by dg-vrnetze (2014-07-30 13:50:34+00:00)
Title: Chained template parsing failed if parent is "html.erb" and child is "html.md.erb"

Given the following templates:

* Parent template "parent.html.erb"
* Child template "child.html.md.erb"

I found an unexpected behaviour of `middleman`: The child template is not compiled correctly. Just the Erb-part is compiled, the markdown part is not compiled. Is this behaviour intended or is it a bug or did I do something wrong?

The test failed with:
```
Scenario: Partials are parsed by multiple template engines # features/chained_templates.feature:21
Given the Server is running at "partial-chained_templates-app" # lib/middleman-core/step_definitions/server_steps.rb:61
When I go to "/parent.html" # lib/middleman-core/step_definitions/server_steps.rb:66
Then I should see: # lib/middleman-core/step_definitions/server_steps.rb:86
"""

Parent

"""
Then I should see: # lib/middleman-core/step_definitions/server_steps.rb:86
"""

Child

"""
expected "

Parent

\n\n## Child\n\nhello world\n\n" to include "

Child

"
Diff:
@@ -1,2 +1,6 @@
-

Child

+

Parent

+
+## Child
+
+hello world
(RSpec::Expectations::ExpectationNotMetError)
./lib/middleman-core/step_definitions/server_steps.rb:87:in `/^I should see:$/'
features/chained_templates.feature:28:in `Then I should see:'
Then I should see: # lib/middleman-core/step_definitions/server_steps.rb:86
"""

hello world

"""
```

Thank you very much.