Why
${exprA} and #{exprB}
must be write as

${’${’}exprA}

#{’#{’}exprB}
or
\${exprA}

\#{exprB}
No matter render me pages for detail or illustrate it , I shall have you very appreciated