Bumping this thread with more information :
This is my structure
static/lib/theme.js
templates/partials/categories_list.tpl
I want to call templates.parse on categories_list.tpl
In categories_list.tpl I have this to test :
TEST
<!-- BEGIN categories -->
INSIDE CATEGORIES
{categories.name}
<!-- END categories -->
I have just managed to show TEST, which means that the data isn't parsed in the template.
I've tried
templates.parse('templates/partials/categories_list.tpl', {categories: data}, callback);
templates.parse('/partials/categories_list.tpl', {categories: data}, callback);
templates.parse('partials/categories_list.tpl', {categories: data}, callback);
templates.parse('../../templates/partials/categories_list.tpl', {categories: data}, callback);
None worked out.
data is a working object and I can console.log it, so the big deal is the templates.parse
function.