{%- set type = (type is defined ? type : 'text') %} {%- set class = [ 'text', (class is defined and class ? class : null), (hint is defined and hint ? 'nicetext' : null), (type is defined and type == 'password' ? 'password' : null), (size is defined and size ? null : 'fullwidth') ]|filter|join(' ') %} {%- if type == 'password' %}