Created
March 28, 2012 21:06
-
-
Save mikeobrien/2230534 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<title><use content="title" /></title> | |
<head> | |
<!-- | |
These url's are all relative to the master layout but will | |
not be valid for views that exist in different folders. | |
I'm hoping to keep the url's relative but I'm not sure if | |
there is a way to accomplish that in a master layout. | |
So a view at the root would have this: | |
<link rel="shortcut icon" href="images/favicon.ico"> | |
And a view at /yada/yada/ would have this: | |
<link rel="shortcut icon" href="../../images/favicon.ico"> | |
Maybe there is some special operator like the tilde or something? | |
<link rel="shortcut icon" href="~/../images/favicon.ico"> | |
--> | |
<link rel="shortcut icon" href="../images/favicon.ico"> | |
<link href="../styles/bootstrap/css/bootstrap.css" rel="stylesheet" type="text/css" /> | |
<link rel="StyleSheet" href="../styles/application.css" type="text/css"/> | |
<script data-main="main" src="../scripts/require/require.js"></script> | |
<use content="head" /> | |
</head> | |
<body class="application-body"> | |
<use content="view"/> | |
</body> | |
</html> |
Ok, great, thanks for looking at it!
…On Wed, Mar 28, 2012 at 5:20 PM, Robert Greyling < ***@***.*** > wrote:
Yup tilde is special in Spark - it gets calculated as the site root, and
from there you can nav downawards
---
Reply to this email directly or view it on GitHub:
https://gist.github.com/2230534
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yup tilde is special in Spark - it gets calculated as the site root, and from there you can nav downawards
So you would actually have something like :
<link href="~/content/js/blah.js" />