Permalink
Browse files

[enhance] server: do not include dyn css link if useless

  • Loading branch information...
Aqua-Ye committed May 1, 2012
1 parent 5d814cd commit 9341b4f54fcb4d53db81dc8729bd6803d94535f0
Showing with 1 addition and 1 deletion.
  1. +1 −1 stdlib/core/web/server/server_private.opa
@@ -220,7 +220,7 @@ Server_private = {{
css_file_with_version = "{base_url_string}/{_internal_}/{css_file_no_internal_with_version}"
//css_file_without_version = "/_internal_/{css_file_no_internal_without_version}"
css_inline_code = ""
- css_library = [css_file_with_version]
+ css_library = if String.is_empty(css_code) then [] else [css_file_with_version]
css_parser = parser
| "{css_file_no_internal_with_version}" -> {}
| "{css_file_no_internal_without_version}" -> {}

0 comments on commit 9341b4f

Please sign in to comment.