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

Closed
ddfreyne opened this Issue Dec 25, 2016 · 0 comments

Comments

Projects
None yet
1 participant
@ddfreyne
Member

ddfreyne commented Dec 25, 2016

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

Steps to reproduce

Given:

  • 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
    end
    
    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