Skip to content

Instantly share code, notes, and snippets.

@geelen
Created July 10, 2013 07:26
Show Gist options
  • Save geelen/5964139 to your computer and use it in GitHub Desktop.
Save geelen/5964139 to your computer and use it in GitHub Desktop.
diff --git a/examples/webapp/Gruntfile.js b/examples/webapp/Gruntfile.js
index 905f175..f419097 100644
--- a/examples/webapp/Gruntfile.js
+++ b/examples/webapp/Gruntfile.js
@@ -131,13 +131,14 @@ module.exports = function (grunt) {
assemble: {
options: {
data: '<%= yeoman.app %>/config.json',
- partials: '<%= yeoman.app %>/partials/*.hbs'
+ partials: '<%= yeoman.app %>/partials/*.hbs',
+ layout: '<%= yeoman.app %>/layout.hbs'
},
dist: {
files: [{
expand: true,
cwd: '<%= yeoman.app %>',
- src: ['{,*/}*.hbs', '!partials/*.hbs'],
+ src: ['{,*/}*.hbs', '!layout.hbs', '!partials/*.hbs'],
dest: '.tmp/'
}]
}
diff --git a/examples/webapp/app/index.hbs b/examples/webapp/app/index.hbs
index 0226d12..48f26b9 100644
--- a/examples/webapp/app/index.hbs
+++ b/examples/webapp/app/index.hbs
@@ -1,35 +1,11 @@
-<!doctype html>
-<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
-<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
-<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
-<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
- <head>
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
- <title>{{ config.title }}</title>
- <meta name="description" content="">
- <meta name="viewport" content="width=device-width">
- <!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
- <!-- build:css({.tmp,app}) styles/main.css -->
- <link rel="stylesheet" href="styles/main.css">
- <!-- endbuild -->
- <!-- build:js scripts/vendor/modernizr.js -->
- <script src="bower_components/modernizr/modernizr.js"></script>
- <!-- endbuild -->
- </head>
- <body>
- <div class="container">
- <div class="hero-unit">
- <h1>'Allo, 'Allo!</h1>
- <p>You now have</p>
- <ul>
- <li>HTML5 Boilerplate</li>
- </ul>
- <p>installed.</p>
- <h3>Enjoy coding! - Yeoman</h3>
- </div>
- </div>
-
- {{> footer }}
-</body>
-</html>
+<div class="container">
+ <div class="hero-unit">
+ <h1>'Allo, 'Allo!</h1>
+ <p>You now have</p>
+ <ul>
+ <li>HTML5 Boilerplate</li>
+ </ul>
+ <p>installed.</p>
+ <h3>Enjoy coding! - Yeoman</h3>
+ </div>
+</div>
diff --git a/examples/webapp/app/layout.hbs b/examples/webapp/app/layout.hbs
new file mode 100644
index 0000000..b149886
--- /dev/null
+++ b/examples/webapp/app/layout.hbs
@@ -0,0 +1,25 @@
+<!doctype html>
+<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
+<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
+<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
+<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
+ <head>
+ <meta charset="utf-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+ <title>{{ config.title }}</title>
+ <meta name="description" content="">
+ <meta name="viewport" content="width=device-width">
+ <!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
+ <!-- build:css({.tmp,app}) styles/main.css -->
+ <link rel="stylesheet" href="styles/main.css">
+ <!-- endbuild -->
+ <!-- build:js scripts/vendor/modernizr.js -->
+ <script src="bower_components/modernizr/modernizr.js"></script>
+ <!-- endbuild -->
+ </head>
+ <body>
+ {{> body }}
+
+ {{> footer }}
+</body>
+</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment