# Include remote files using HUBL?

**URL:** <https://community.hubspot.com/t/include-remote-files-using-hubl/31329>\
**Category:** CMS Development\
**Created:** [February 5, 2021, 10:00am UTC](https://community.hubspot.com/t/include-remote-files-using-hubl/31329 "2021-02-05T10:00:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![owenmelbz](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/owenmelbz/32/9373_2.png) [@owenmelbz](https://community.hubspot.com/u/owenmelbz)\
**Post date:** [February 5, 2021, 10:00am UTC](https://community.hubspot.com/t/include-remote-files-using-hubl/31329/1 "2021-02-05T10:00:50Z")

</div>

Hi,

Is it possible without AJAXing in to include a remote file onto your HUBL template?

e.g. in PHP we might do…

```lia-code-sample
<div class="customer-logos">
 <?php echo file_get_contents('https://mywebsite.com/customer-logos.html'); ?>
</div>

```

This will print the contents of the ` **customer-logos.html** ` within the webpage.

Really we’re looking for a way to import certain components from our website into some HubSpot forms.

Thanks

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [February 5, 2021, 6:43pm UTC](https://community.hubspot.com/t/include-remote-files-using-hubl/31329/2 "2021-02-05T18:43:00Z")

</div>

Hey @owenmelbz

Welcome to the Community!

@stefen , @tjoyce what do you think about this?

---

<div class="post-metadata">

**Author:** ![tjoyce](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/tjoyce/32/88832_2.png) [@tjoyce](https://community.hubspot.com/u/tjoyce)\
**Post date:** [February 8, 2021, 10:46am UTC](https://community.hubspot.com/t/include-remote-files-using-hubl/31329/3 "2021-02-08T10:46:19Z")

</div>

@owenmelbz - This would be soooo helpful, especially if you would like to digest a raw json file from an external source with hubl…

I have yet to see this functionality.

---

<div class="post-metadata">

**Author:** ![stefen](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/stefen/32/29274_2.png) [@stefen](https://community.hubspot.com/u/stefen)\
**Post date:** [February 8, 2021, 2:05pm UTC](https://community.hubspot.com/t/include-remote-files-using-hubl/31329/4 "2021-02-08T14:05:29Z")

</div>

@dennisedson @owenmelbz @tjoyce you can use the standard `{% include %}` function for that but it only works for hubl files. Remote files would be cool but I know that opens up some potential security issues.
