Dynamic variables do not work for me

When I use dynamic variables, nothing seems to happen for me. Eg.g. {{query (and <% current page %> todo(todo))}} does not find all todos in the current page.

small typo in your parentheses:
{{query (and <% current page %> (todo todo)) }}

the extra spaces are not needed, but I like them for readability