Hi brawcks, yes it is possible to pass it to blaze. The only thing that you need to do is call the helper in the html template like this: {{{helpername}}}.
Nice, i’ve tried it it worked, so i rendered the HTML in my template. There is only one thing which didn’t worked, it’s the spacebar i put into the helper : {{pathFor “partners/page” page=’+index+’}}
It’s rendered “as is”, so this part isn’t interpreted by blaze.
This part wont actually be rendered through the curly braces, what I would do in this case is add a special class to the page-preview and page-next and just do a click event that runs the Template.instance().page.get() ± 1 with the Flowrouter.go or if you are using iron:router its equivalent.
I’m pretty sure this won’t work at all. The spacebars templates are compiled into JS files during build, so the client never even sees the curly braces.
Instead you should just evaluate the result yourself using FlowRouter.path, or your router’s equivalent: