In ASP.NET MVC, I used occasional calls such as Url.Content("~/Some folder/") to get the full path of different URLs.
Is there anything similar in Giraffe?
The following code comes from the default app I created with the template:
let layout (content: XmlNode list) =
html [] [
head [] [
title [] [ encodedText "TestAccountsManager" ]
link [ _rel "stylesheet"
_type "text/css"
_href "/main.css" ]
]
body [] content
]
Is /main.css relative to the root of the application? Or is it relative to the server name? In ASP.NET MVC, I would use something like ~/css/main.css, let's say. If the app is deployed under http://example/someapp/ or http://example/ I know this would work in both cases.