{"action":"created","issue":{"url":"https://api.github.com/repos/rgrinberg/opium/issues/28","labels_url":"https://api.github.com/repos/rgrinberg/opium/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/rgrinberg/opium/issues/28/comments","events_url":"https://api.github.com/repos/rgrinberg/opium/issues/28/events","html_url":"https://github.com/rgrinberg/opium/issues/28","id":56329055,"number":28,"title":"Is there any way to load html files?","user":{"login":"liweijian","id":382763,"avatar_url":"https://avatars.githubusercontent.com/u/382763?v=3","gravatar_id":"","url":"https://api.github.com/users/liweijian","html_url":"https://github.com/liweijian","followers_url":"https://api.github.com/users/liweijian/followers","following_url":"https://api.github.com/users/liweijian/following{/other_user}","gists_url":"https://api.github.com/users/liweijian/gists{/gist_id}","starred_url":"https://api.github.com/users/liweijian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liweijian/subscriptions","organizations_url":"https://api.github.com/users/liweijian/orgs","repos_url":"https://api.github.com/users/liweijian/repos","events_url":"https://api.github.com/users/liweijian/events{/privacy}","received_events_url":"https://api.github.com/users/liweijian/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-03T03:28:56Z","updated_at":"2015-02-03T09:53:30Z","closed_at":null,"body":"Sometimes I only want to display some html files. In Racket, I use `web-server/templates` library's function `include-template`. \r\n\r\nI'm wondering whether opium support loading html files."},"comment":{"url":"https://api.github.com/repos/rgrinberg/opium/issues/comments/72622529","html_url":"https://github.com/rgrinberg/opium/issues/28#issuecomment-72622529","issue_url":"https://api.github.com/repos/rgrinberg/opium/issues/28","id":72622529,"user":{"login":"liweijian","id":382763,"avatar_url":"https://avatars.githubusercontent.com/u/382763?v=3","gravatar_id":"","url":"https://api.github.com/users/liweijian","html_url":"https://github.com/liweijian","followers_url":"https://api.github.com/users/liweijian/followers","following_url":"https://api.github.com/users/liweijian/following{/other_user}","gists_url":"https://api.github.com/users/liweijian/gists{/gist_id}","starred_url":"https://api.github.com/users/liweijian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liweijian/subscriptions","organizations_url":"https://api.github.com/users/liweijian/orgs","repos_url":"https://api.github.com/users/liweijian/repos","events_url":"https://api.github.com/users/liweijian/events{/privacy}","received_events_url":"https://api.github.com/users/liweijian/received_events","type":"User","site_admin":false},"created_at":"2015-02-03T09:53:30Z","updated_at":"2015-02-03T09:53:30Z","body":"```ml\r\nopen Core_kernel.Std\r\nopen Opium.Std\r\n\r\nlet app =\r\n    App.empty\r\n    |> middleware (Middleware.static ~local_path:\"./htmls\" ~uri_prefix:\"/pub\")\r\n\r\nlet () =\r\n    app |> App.command |> Command.run\r\n```\r\n\r\nThank you, my testing code as above. When I compiled it by command\r\n\r\n```bash\r\ncorebuild -pkg opium staticf.native\r\n```\r\n\r\nIt showed\r\n\r\n```bash\r\nFile \"staticf.ml\", line 14, characters 19-36:\r\nError: Unbound module Middleware\r\n```"}}