MommaWatasu / OteraEngine.jl

This package is a template engine for Julia Lang.
https://mommawatasu.github.io/OteraEngine.jl/stable
MIT License
20 stars 4 forks source link

What's the correct way to use this package? #14

Closed edyu closed 1 year ago

edyu commented 1 year ago

It looks like

tmp = Template("./my_template.html")
init = Dict("name" => "blah")
return html(tmp(init))

doesn't work anymore (will not find the function) I have to now do

tmp = Template("./my_template.html")
init = Dict("name" => "blah")
return html(tmp(; tmp_init=init))
MommaWatasu commented 1 year ago

There was a lack of explanation. As I create template code, you have to use not init but jl_init and tmp_init. I think this issue has been solved as well.

edyu commented 1 year ago

You still have some inline example code pointing to the first way. That's fine. I'll mark this not as a bug.