We are using Wordpress underscore templating system for our search result / grid template 

You can check Wordpress official docs for their templating from here 

https://codex.wordpress.org/Javascript_Reference/wp.template

and here is a great tutorial to learn the templating system

https://lkwdwrd.com/wp-template-js-templates-wp