# How to output collection to custom HTML template?

**URL:** https://discourse.notenik.app/t/how-to-output-collection-to-custom-html-template/211
**Category:** Uncategorized
**Created:** [April 25, 2023, 9:31am UTC](https://discourse.notenik.app/t/how-to-output-collection-to-custom-html-template/211 "2023-04-25T09:31:57Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![mamibe](https://discourse.notenik.app/letter_avatar_proxy/v4/letter/m/ee7513/32.png) [@mamibe](https://discourse.notenik.app/u/mamibe)
#### Post date: [April 25, 2023, 9:31am UTC](https://discourse.notenik.app/t/how-to-output-collection-to-custom-html-template/211/1 "2023-04-25T09:31:57Z")

</div>

How can I export my collection to a custom HTML template?  
I searched the documentation, especially [Import and Export](https://notenik.app/knowledge-base/EPUB/html/import-and-export-your-notes.html) and this forum, but could not find any reference.

What I want?

A custom HTML that has directives for next/last and my title and body fields

How I want to use it?

When I use export, the collection should loop over my HTML template and spit out a folder of interlinked HTML pages.

Thanks for all pointers and help!

---

<div class="post-metadata">

### Author: ![hbowie](https://discourse.notenik.app/user_avatar/discourse.notenik.app/hbowie/32/6_2.png) [@hbowie](https://discourse.notenik.app/u/hbowie)
#### Post date: [April 25, 2023, 2:02pm UTC](https://discourse.notenik.app/t/how-to-output-collection-to-custom-html-template/211/2 "2023-04-25T14:02:42Z")

</div>

What you want to look at is the documentation on [Merge Templates](https://notenik.app/knowledge-base/EPUB/html/merge-templates.html), possibly followed by the documentation on [Script files](https://notenik.app/knowledge-base/EPUB/html/script-files.html). Happy to answer questions after you’ve had a look at these topics!
