jverzani/Mustache.jl

{{function}}

Closed this issue · 1 comments

The following example with a function should evaluate f with different values of a and b; it doesn't.

f() = a + b
A = [(a=1, b=2), (a=3, b=4)]
tpl = mt"""
{{#:A}}
{{:f}}
{{/:A}}
"""
Mustache.render(tpl; A, f)

We need some macro @with nt f where f is called with global variables in the named tuple nt.

closed in #151