Skip to content

Instantly share code, notes, and snippets.

@TCotton
Created March 16, 2015 09:36
Show Gist options
  • Save TCotton/6e9ad51e39712379c1bb to your computer and use it in GitHub Desktop.
Save TCotton/6e9ad51e39712379c1bb to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<link rel="import" href="/compiled/assets/js/admin/templates/common/head-import.html">
<script>
(function(document){
var link, template, clone;
if ('import' in document.createElement('link')) {
link = document.querySelector('link[rel="import"]');
// Clone the <template> in the import.
template = link.import.querySelector('template');
clone = document.importNode(template.content, true);
// append to header
document.head.appendChild(clone);
}
})(document);
</script>
</head>
<body>
<!-- common navigation -->
<div ng-include src="'/compiled/assets/js/admin/templates/common/header-html.html'"></div>
<!-- main content start -->
<div class="container-fluid">
<!-- change content template based on page -->
<div ng-include src="'/compiled/assets/js/admin/templates/enhancedAuthor/enhanced-author.html'"></div>
</div>
<!-- main content end -->
<!-- common footer -->
<div ng-include src="'/compiled/assets/js/admin/templates/common/footer-html.html'"></div>
<!-- end common footer -->
<link rel="import" id="script-imports" href="/compiled/assets/js/admin/templates/common/script-import.html">
<script>
(function(document){
var link, template, clone;
if ('import' in document.createElement('link')) {
link = document.querySelector('#script-imports');
// Clone the <template> in the import.
template = link.import.querySelector('template');
clone = document.importNode(template.content, true);
// append to header
document.body.appendChild(clone);
}
})(document);
</script>
<template id="script-loader">
<script type="text/javascript" src="/compiled/assets/js/admin/loaders/enhancedAuthor/enhancedAuthorLoader.js"></script>
</template>
<script>
(function(document){
var link, template, clone;
if ('import' in document.createElement('link')) {
// Clone the <template> in the import.
template = document.querySelector('#script-loader');
clone = document.importNode(template.content, true);
// append to header
document.body.appendChild(clone);
}
})(document);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment