Skip to content

Commit

Permalink
Template include tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Damon Oehlman committed Feb 23, 2012
1 parent 51bcb39 commit e700942
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 40 deletions.
22 changes: 1 addition & 21 deletions deck.js/template.html
Expand Up @@ -4,40 +4,20 @@
<meta charset="utf-8">
<title>{{ title }}</title>
<meta name="viewport" content="width=1024, user-scalable=no">
<!-- Replace path with correct path to deck.core.css. -->
<link rel="stylesheet" href="css/deck.core.css" type="text/css">

<!-- Any other extension CSS files go here. -->

<!-- Replace path with correct path to Modernizr file. -->
<script src="js/modernizr.custom.js"></script>

{{#each includes.head}}{{{ this }}}{{/each}}
</head>
<body class="deck-container">

<!-- use the handlebars each statement to create multiple content sections for the included files -->
{{#each items}}
<section class="slide" {{#each attributes}}{{key}}="{{val}}"{{/each}}>
{{{ content }}}
</section>
{{/each}}

<!-- Other extension HTML snippets go here, at the bottom of the deck container. -->

<!-- Update these paths to point to the correct files. -->
<script src="js/jquery.min.js"></script>
<script src="js/deck.core.js"></script>

<!-- Add any other extension JS files here -->


<!-- Initialize the deck. You can put this in an external file if desired. -->
{{#each includes.body}}{{{ this }}}{{/each}}
<script>
$(function() {
$.deck('.slide');
});
</script>
{{#each includes.body}}{{{ this }}}{{/each}}
</body>
</html>
28 changes: 12 additions & 16 deletions fathom/template.html
Expand Up @@ -2,11 +2,17 @@
<html>
<head>
<title>{{ title }}</title>
<link rel="stylesheet" type="text/css" href="css/fathom.sample.css" />
<link rel="stylesheet" type="text/css" href="css/prettify.css" />
<script src="js/jquery.min.js" type="text/javascript"></script>
<script src="js/fathom.js"></script>
<script src="js/prettify.js"></script>
{{#each includes.head}}{{{ this }}}{{/each}}
</head>
<body>
<div id="presentation">
{{#each items}}
<div class="slide" {{#each attributes}}{{key}}="{{val}}"{{/each}}>
{{{ content }}}
</div>
{{/each}}
</div>
{{#each includes.body}}{{{ this }}}{{/each}}
<script>
$(document).ready(function(){
$('pre').addClass('prettyprint').attr('tabIndex', 0);
Expand All @@ -19,15 +25,5 @@
}
});
});
</script>
</head>
<body>
<div id="presentation">
{{#each items}}
<div class="slide" {{#each attributes}}{{key}}="{{val}}"{{/each}}>
{{{ content }}}
</div>
{{/each}}
</div>
</body>
</script></body>
</html>
3 changes: 0 additions & 3 deletions portable/template.html
Expand Up @@ -4,8 +4,6 @@
<meta charset="utf-8">
<title>{{ title }}</title>
<meta name="viewport" content="width=device-width;">
<link rel="stylesheet" href="css/portable.css" type="text/css">
<link rel="stylesheet" href="css/theme-{{ theme }}.css" type="text/css">
{{#each includes.head}}{{{ this }}}{{/each}}
</head>
<body class="portable">
Expand All @@ -14,7 +12,6 @@
{{{ content }}}
</section>
{{/each}}
<script src="js/jquery.min.js"></script>
{{#each includes.body}}{{{ this }}}{{/each}}
</body>
</html>

0 comments on commit e700942

Please sign in to comment.