# Combining Handlebars and Javascript

**URL:** <https://forum.ghost.org/t/combining-handlebars-and-javascript/36388>\
**Category:** Themes\
**Created:** [February 15, 2023, 6:17am UTC](https://forum.ghost.org/t/combining-handlebars-and-javascript/36388 "2023-02-15T06:17:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jawon](https://avatars.discourse-cdn.com/v4/letter/j/8491ac/32.png) [@jawon](https://forum.ghost.org/u/jawon)\
**Post date:** [February 15, 2023, 6:17am UTC](https://forum.ghost.org/t/combining-handlebars-and-javascript/36388/1 "2023-02-15T06:17:49Z")

</div>

I had a bit of a struggle getting the content I wanted out of Ghost. I even started writing my own Handlebars helper until I realised Ghost wouldn’t load it.

I found a solution by combining Ghost and Javascript. I did a short write-up of how I did it here: [Ghost handlebars helpers + Javascript = secure filtering](https://themercenarygraef.com/posts/ghost-handlebars-helpers-javascript-secure-filtering/)

I might have gone the long way around to get it working. So if you know a shortcut let me know.

James
