|
|
|
|
|
by eknkc
3415 days ago
|
|
Yeah this is the reason I went ahead and wrote the template engine I mentioned in the parent comment. It compiles down to go templates. I inject generic math functions [1] and convert an expression like 4 + 5 * 3 to go template function calls. It's ugly but the compiler generates it so whatever :) [1] https://github.com/eknkc/amber/blob/master/runtime.go |
|