Closed edyu closed 1 year ago
That will cause the following problem when using your template engine:
┌ Error: ERROR: │ exception = │ MethodError: no method matching (::OteraEngine.Template)(::Dict{String, String}) │ │ Closest candidates are: │ (::OteraEngine.Template)(; tmp_init, jl_init) │ @ OteraEngine ~/.julia/packages/OteraEngine/lXojN/src/template.jl:63 │ │ Stacktrace:
The code was
tmp = Template("./src/templates/profiles.html") init = Dict("name" => current.user.name, "avatar" => current.avatar) return html(tmp(init))
Actually has the same problem under 1.8.5 now.
That will cause the following problem when using your template engine:
┌ Error: ERROR: │ exception = │ MethodError: no method matching (::OteraEngine.Template)(::Dict{String, String}) │ │ Closest candidates are: │ (::OteraEngine.Template)(; tmp_init, jl_init) │ @ OteraEngine ~/.julia/packages/OteraEngine/lXojN/src/template.jl:63 │ │ Stacktrace: The code was
tmp = Template("./src/templates/profiles.html") init = Dict("name" => current.user.name, "avatar" => current.avatar) return html(tmp(init))