> For the complete documentation index, see [llms.txt](https://easonwang.gitbook.io/web_advance/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://easonwang.gitbook.io/web_advance/mu-ban-yin-qing/handlebarsjs.md).

# Handlebars.js

存取陣列

```
[{ 
  title: "My New Post", 
  body: "This is my first post!"
}]

{{#each this}}
 {{title}}
{{/each}}
```

有index的陣列

```
{
article:[{ 
  title: "My New Post", 
  body: "This is my first post!"
}]
}

{{#each article}}
 {{title}}
{{/each}}
```

存取物件

```
{{#with this}}
 {{title}}
{{/with}}


{ 
  title: "My New Post", 
  body: "This is my first post!"
}
```
