Skip to content

Instantly share code, notes, and snippets.

@ovaillancourt
Created June 7, 2012 16:18
Show Gist options
  • Save ovaillancourt/2889826 to your computer and use it in GitHub Desktop.
Save ovaillancourt/2889826 to your computer and use it in GitHub Desktop.
1- If a <base> tag exists, use this as the base path, or the "mount point" by default. The mount point defaults to '' if the base tag isn't there.
2- If the user calls page.base, override the mount point extracted in point 1.
3- Always prepend the mount point.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment