# Include files from outside of partials

**URL:** https://discourse.gohugo.io/t/include-files-from-outside-of-partials/19295
**Category:** support
**Created:** [June 21, 2019, 2:40pm UTC](https://discourse.gohugo.io/t/include-files-from-outside-of-partials/19295 "2019-06-21T14:40:15Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![bradbice](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/bradbice/32/14162_2.png) [@bradbice](https://discourse.gohugo.io/u/bradbice)
#### Post date: [June 21, 2019, 2:40pm UTC](https://discourse.gohugo.io/t/include-files-from-outside-of-partials/19295/1 "2019-06-21T14:40:15Z")

</div>

Hi, I’m using Hugo to create a pattern library, and have been successfully doing so for about a year and a half.

However, I’m using partials to include HTML files as rendered examples of my components and patterns, which is keeping me from bundling HTML, CSS, and JS files together in folders for a proper pattern library.

Is there a conceivable way to keep all of these files together, access them as partials or includes, as well as be able to access the CSS/Sass? I understand this is pushing Hugo’s intentions and feature set, but just wondering if i’m missing any feature.

---

<div class="post-metadata">

### Author: ![zwbetz](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/zwbetz/32/16088_2.png) [@zwbetz](https://discourse.gohugo.io/u/zwbetz)
#### Post date: [June 21, 2019, 3:49pm UTC](https://discourse.gohugo.io/t/include-files-from-outside-of-partials/19295/2 "2019-06-21T15:49:35Z")

</div>

If I’m understanding your question, then you could keep them together in page bundles, then when getting a given resource. use the `.Content` field to get its contents.

---

<div class="post-metadata">

### Author: ![bradbice](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/bradbice/32/14162_2.png) [@bradbice](https://discourse.gohugo.io/u/bradbice)
#### Post date: [June 21, 2019, 3:55pm UTC](https://discourse.gohugo.io/t/include-files-from-outside-of-partials/19295/3 "2019-06-21T15:55:01Z")

</div>

Ah, ok. I’ll check that out as an option. Thanks!
