Reuse Template Question


#1

I defined a shared template in a file foo.html


  ...

But when I used foo in bar.html twice there is wrong result


  {{> foo}}
  ...
  {{> foo}}

Does {{> foo}} make a macro replacement in bar.html?

How can I apply template as a procedure?


#2

That should work.

You’ll have to expand your example code to help us figure out the problem though


#3

Thanks. It worked by added missed helper functions.