I have the following if else statement in my slim file
- if x == 0
div Some cool title here
- else
div A different cool title goes here
Which is fine, however I want to have some child tags inside the divs
- if x == 0
div Some cool title here
div Ditto
- else
div A different cool title goes here
div Ditto
This is going against DRY. Is there anyway I can reduce this code so I don't have to see the child tags twice? Any attempt I've made so far has lead me to have the child tag exist in one div and not the other which is not what I want, I want the child tag to exist no matter what.