Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#compiled_content not returning :pre content #1040

denisdefreyne opened this issue Dec 25, 2016 · 0 comments

#compiled_content not returning :pre content #1040

denisdefreyne opened this issue Dec 25, 2016 · 0 comments


Copy link

denisdefreyne commented Dec 25, 2016

#compiled_content can pick the wrong content when :pre is expected.

Steps to reproduce


  • File content/foo.txt, with content bar=<%= @items["/bar.*"].compiled_content %>

  • File content/bar.txt, with content foo=<%= @items["/foo.*"].compiled_content %>

  • File layouts/default.erb, with content *<%= yield %>*

  • Rules file

    compile '/*' do
      filter :erb
      layout '/default.*'
      write item.identifier
    layout '/*.erb', :erb

When compiling the site

Expected behavior

A RecursiveCompilation error is raised.

Actual behavior

  • No error is raised
  • output/foo.html contains bar=foo=<%= @items['/foo.*'].compiled_content %>
  • output/bar.html contains foo=bar=foo=<%= @items['/foo.*'].compiled_content %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

No branches or pull requests

1 participant