:: LanguageMacros[widget]
<<widget 'plural'>>
    <<if _args[0] == 1>>
        <<print _args[1]>>
    <<else>>
        <<print _args[2]>>
    <</if>>
<</widget>>

<<widget 'concatAnd'>>
    <<if _args[0].length == 1>>
        <<=_args[0][0]>>
    <<elseif _args[0].length > 1>>
        <<set _elements = clone(_args[0])>>
        <<set _last = _elements.pop()>>
        <<=_elements.join(', ')+' and '+_last>>
    <</if>>
<</widget>>
