Can we reference the included Handlebars library on the client?


#1

I’d like to use things like “Handlebars.compile” on the client-side without re-including Handlebars in my package.json. Is there a way to “surface” the already included Handlebars library?


#2

The dependencies / libraries that power ghost are not available on the client side; if you want to use one you need to include it via the <script> tag (if applicable), or as part of your frontend bundle


#3

Makes sense but then how can I implement all the helpers Ghost has implemented? My usecase is that I’d like to make use of the handlebars templates but on the client side.


#4

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.