Merge pull request #1525 from zerobase/issue1519
Force rendering of Include tag. Fixes #1519.
This commit is contained in:
		
						commit
						5c23ae158e
					
				| 
						 | 
				
			
			@ -80,6 +80,10 @@ eos
 | 
			
		|||
          return "The included file '_includes/#{@file}' should not be a symlink"
 | 
			
		||||
        end
 | 
			
		||||
      end
 | 
			
		||||
 | 
			
		||||
      def blank?
 | 
			
		||||
        false
 | 
			
		||||
      end
 | 
			
		||||
    end
 | 
			
		||||
  end
 | 
			
		||||
end
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -436,5 +436,22 @@ CONTENT
 | 
			
		|||
        assert_match "<span id='include-param' />", @result
 | 
			
		||||
      end
 | 
			
		||||
    end
 | 
			
		||||
 | 
			
		||||
    context "without parameters within if statement" do
 | 
			
		||||
      setup do
 | 
			
		||||
        content = <<CONTENT
 | 
			
		||||
---
 | 
			
		||||
title: without parameters within if statement
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
{% if true %}{% include params.html %}{% endif %}
 | 
			
		||||
CONTENT
 | 
			
		||||
        create_post(content, {'permalink' => 'pretty', 'source' => source_dir, 'destination' => dest_dir, 'read_posts' => true})
 | 
			
		||||
      end
 | 
			
		||||
 | 
			
		||||
      should "include file with empty parameters within if statement" do
 | 
			
		||||
        assert_match "<span id='include-param' />", @result
 | 
			
		||||
      end
 | 
			
		||||
    end
 | 
			
		||||
  end
 | 
			
		||||
end
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue