{%- set class = [ 'btn big', (class is defined and class ? class : null) ]|filter|join(' ') %} {%- includejsresource "lib/colorpicker/js/colorpicker"~(craft.config.useCompressedJs ? ".min")~".js" -%} {%- includecssresource "lib/colorpicker/css/colorpicker.css" -%} {%- includejs 'new Craft.ColorPicker("'~(id|namespaceInputId)~'");' %}