Permalink
Browse files

moved resources to the root

  • Loading branch information...
François-Régis Sinot
François-Régis Sinot committed Jun 17, 2011
1 parent 6d11001 commit 5b4cb3e978a51f83094a0c313d8706c8e535775b
Showing with 6 additions and 4 deletions.
  1. 0 {src → }/css/style.css
  2. BIN {src → }/img/3dgrid.png
  3. +6 −4 src/main.opa
File renamed without changes.
File renamed without changes.
View
@@ -20,15 +20,17 @@ server_modeler_static_page(scene_url) =
<div id=#{id_work_area} />
</div> ;
-resources = Rule.of_map(@static_include_directory("./src/css"))
+resources_css = Rule.of_map(@static_include_directory("./css"))
+resources_img = Rule.of_map(@static_include_directory("./img"))
urls =
parser
- | "/" r=resources -> r
+ | "/" r=resources_css -> r
+ | "/" r=resources_img -> r
| "/scene/" scene_url=(.*) ->
- Resource.styled_page("3D creation", ["/src/css/style.css"],server_modeler_static_page(Text.to_string(scene_url)))
+ Resource.styled_page("3D creation", ["/css/style.css"], server_modeler_static_page(Text.to_string(scene_url)))
| (.*) ->
- html("Welcome", server_welcome_static_page())
+ Resource.styled_page("Welcome", ["/css/style.css"], server_welcome_static_page())
end ;

0 comments on commit 5b4cb3e

Please sign in to comment.