How to include template with Ghost API

Hello guys, i’m new to Ghost…
With Wordpress i used to make AJAX filters that call a PHP function which include a partial file.php with the card post template.
How can i do this with Ghost?
This is the script:

My goal is include the file partial/post-card.hbs for each post, instead of write again the html inside a js function