: CdeEngine.getInstance().getEnvironment().getUrlProvider().getWebappContextRoot() )
: "" );
// +
// ;
StringFilter cssFilter = new StringFilter() {
public String filter( String input ) {
return String.format(
"\t\t<link href=\"%s%s\" rel=\"stylesheet\" type=\"text/css\" />\n",
baseUrl, baseUrl.endsWith( "/" ) && input.startsWith( "/" ) ? input.replaceFirst( "/", "" ) : input);
}
public String filter( String input, String baseUrl ) {
return String.format(
"\t\t<link href=\"%s%s\" rel=\"stylesheet\" type=\"text/css\" />\n",
baseUrl, baseUrl.endsWith( "/" ) && input.startsWith( "/" ) ? input.replaceFirst( "/", "" ) : input);
}
};
StringFilter jsFilter = new StringFilter() {
public String filter( String input ) {
return String.format(
"\t\t<script language=\"javascript\" type=\"text/javascript\" src=\"%s%s\"></script>\n",
baseUrl, baseUrl.endsWith( "/" ) && input.startsWith( "/" ) ? input.replaceFirst( "/", "" ) : input);