I’m trying to understand how Ghost works, its data structure and without touching the core. I’ve looking at the docs to get an idea on how to go about what I want to achieve.
post.hbs, in a
<script> tag, I want to make an AJAX call (GET, POST or PUT) to a function that returns data or does something. I dont know where to place that function. Also that needs a url to get to. That function should not be a client; it should be the server. How to achieve this? Possible?
ie: From the client, I send an api key to the “server” that gets a Twitter data, then returns that information where I update the DOM.