css file in template Symfony 3 twig -


i know if it's possible include css file directly in template file. here template in separate html.twig file:

 {% block stylesheets %}     <link rel="stylesheet" href="{{ asset('/assets/vendor/checkbox-awesome/awesome-bootstrap-checkbox.css') }}" /> {% endblock %}  {% block checkbox_widget %}     {% spaceless %}         <div class="checkbox checkbox-primary">             <input type="checkbox" {{ block('widget_attributes') }} {% if checked %} checked="checked"{% endif %} />             <label style="font-weight:700;color:#333;" for="{{ id }}"><span>{{ label|trans }}</span></label>         </div>     {% endspaceless %} {% endblock checkbox_widget %} 

i use template generate customs checkboxes. block stylesheets doesn't work, have include in each html file contains checkboxes. :) (sorry english mistakes)


Comments