BatmanSysy/FSA-Assignments — pull request #2 by BatmanSysy (2014-11-06 11:01:52+00:00)
Title: use template with handlebars

### improved website by template

- use '*handlebars*' for template

> js

```javascript
server.route({
method: 'GET',
path: '/',
handler: function (request, reply) {
reply.view('index', {
menus: [
{
"name": "About",
"href": "#about"
},
{
"name": "Portfolio",
"href": "#portfolio"
},
{
"name": "Download",
"href": "#download"
},
{
"name": "Contact",
"href": "#contact"
},
{
"name": "Map",
"href": "#map"
}
]
});
}
});
```
> html

```HTML

{{#each menus}}

{{name}}

{{/each}}

```

- screenshot:
![use-handlebars](https://cloud.githubusercontent.com/assets/9525174/4934603/0932d776-65a3-11e4-948f-b8a9f6fe304a.gif)