I saw a similar question, but I believe there are certain differences here, that is this code can't be fixed that way. Let's consider the following code:
- if image['href']
%a{href: image['href']}
<some markup>
- else
<some markup>
Is there anything I can do to avoid duplication without moving code to the other file?
UPD It appears my question is a duplicate of this one.