Skip to content

Instantly share code, notes, and snippets.

@kingluddite
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kingluddite/e12120599f1f9dd77fcb to your computer and use it in GitHub Desktop.
Save kingluddite/e12120599f1f9dd77fcb to your computer and use it in GitHub Desktop.
<template name="About">
<div class="container">
<div class="page-header">
<h1>About <small>we are more awesome than you are</small></h1>
</div>
</div>
</template>
<template name="Home">
<div class="page-header">
<h1>Home<small> is where you lay your hat</small></h1>
</div>
</template>
<template name="Projects">
<div class="page-header">
<h1>Projects<small>list</small></h1>
</div>
</template>
@kingluddite
Copy link
Author

Add these pages and then localhost:3000, localhost:3000/about, and localhost:3000/projects entered into the URL will take you to those respective 'pages'.

Because we set up the paths and wired them to these pages in router.js, the links in menu.html will also take us to the different pages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment