Don't yield content if there's not any content_for it
This commit is contained in:
parent
f3175bdb72
commit
ce2ffed705
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ macro content_for(key)
|
|||
end
|
||||
|
||||
macro yield_content(key)
|
||||
CONTENT_FOR_BLOCKS[{{key}}].call
|
||||
CONTENT_FOR_BLOCKS[{{key}}].call if CONTENT_FOR_BLOCKS.has_key?({{key}})
|
||||
end
|
||||
|
||||
macro render(filename, layout)
|
||||
|
|
Loading…
Reference in a new issue