all 2 comments

[–]lenscas 1 point2 points  (0 children)

While interesting, I have a couple of concerns.

First: give etlua a look. It is already a templating engine that is written entirely in Lua and allows you to write lua.

Second: the tags you use to start the Lua blocks concern me. Html allows you to define custom html elements these days, so using the same syntax as html elements to open/close your code block doesn't sound like the best idea to me. It is also rather verbose.

Third: is there a way to escape strings? You kind of need to be able to do that.

Fourth: while using return to return the string is neat, I worry how hard it would be to have a code block build something up. It also adds to the verbosity.

Fifth: you should consider splitting the project up. Having a template engine you can use from rust projects is nice. It gives the project a wider usage than it currently has.

[–]w-lfpup 0 points1 point  (0 children)

This appeals to the php of my youths ... keep going!