Hi Janko,

You could try:

@Inject
@Path("context:assets/css/layout.css")
private Asset _layoutCss;

public Asset getLayoutCss() {
  if (yourCondition)
     return _layoutCss;
  else
     return "";
}


<head>
  <link href="${layoutCss}" rel="stylesheet" type="text/css"/>
</head>


Marcus

Reply via email to