Skip to content

Instantly share code, notes, and snippets.

@Stuk
Created November 8, 2013 18:39
Show Gist options
  • Save Stuk/7375513 to your computer and use it in GitHub Desktop.
Save Stuk/7375513 to your computer and use it in GitHub Desktop.
Using montage with deep urls
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>resolve</title>
<!-- Base URL ensures montage.js and style.css are loaded from the root of the server
Make sure this comes before any `script`, `style`, or `link` tags to ensure that
resources are loaded from the correct place. -->
<base href="/">
<!-- data-package attribute tells montage to load the package from the root of the server -->
<script src="node_modules/montage/montage.js" data-package="/" async></script>
<link rel="stylesheet" href="assets/style/style.css" />
<script type="text/montage-serialization">
{
"owner": {
"prototype": "montage/ui/loader.reel",
"properties": {
"mainModule": "ui/welcome.reel",
"mainName": "Welcome"
}
}
}
</script>
</head>
<body>
<span class="loading"></span>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment