#!/bin/sh
VAR=foo
echo "${VAR:+TEXT='$VAR'}"
it outputs here correctly: TEXT='foo'
(hitted it in a here-document, where we write out hmtl-code, e.g.
#!/bin/sh
cat <<EOF
<body ${font_color:+ LINK='$font_color' VLINK='$font_color' ALINK='$font_color'}>
EOF
it outputs here correctly: TEXT='foo'
(hitted it in a here-document, where we write out hmtl-code, e.g.