I'm trying to figure out how to do an inline if
statement:
div(class="social-text").
#[b #{share.title}] #{share.bodyText}
In the code above it's possible that share.title=undefined
. In case it is, I don't want to render a <b></b>
tag in the resulting html
but can't figure out how that works in pug.