As mentioned by Arun, you can not use clientSide variables to render
server side scripts. In this case, you render your HTML and use
javascript to show/hide block based on js Variable value. ${"America" @ i18n, context='html'} #
Hide showInput div block on page load .showInput
{ display: none; } if(isTrue) { // Display showInput
div block if JS object is true }