Skip to content

Instantly share code, notes, and snippets.

@geelen
Last active December 19, 2015 13:39
Show Gist options
  • Save geelen/5964066 to your computer and use it in GitHub Desktop.
Save geelen/5964066 to your computer and use it in GitHub Desktop.
diff --git a/examples/webapp/app/index.hbs b/examples/webapp/app/index.hbs
index bad408f..fc2b257 100644
--- a/examples/webapp/app/index.hbs
+++ b/examples/webapp/app/index.hbs
@@ -1,3 +1,6 @@
+---
+title: "My Page Title!"
+---
<!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]-->
@@ -6,7 +9,7 @@
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
- <title></title>
+ <title>{{ 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 -->
diff --git a/examples/webapp/app/config.json b/examples/webapp/app/config.json
new file mode 100644
index 0000000..540a670
--- /dev/null
+++ b/examples/webapp/app/config.json
@@ -0,0 +1,3 @@
+{
+ "title": "My title from JSON!"
+}
diff --git a/examples/webapp/app/index.hbs b/examples/webapp/app/index.hbs
index bad408f..0b78bfd 100644
--- a/examples/webapp/app/index.hbs
+++ b/examples/webapp/app/index.hbs
@@ -6,7 +6,7 @@
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
- <title></title>
+ <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 -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment