fragment with template: add css_class to context