Ego templating library #29
-
Hi again! I hope this is my last question so that I won't bother you anymore. I do not understand what is the purpose of ego templating library in the context of the app. What is the advantage that it provides? Is there a reason for not choosing an implementation w/o ego? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
hey again! Great question. There are lots of templating implementations and Go even includes one in its standard library (html/template). There are several things I dislike about most templating libraries (including Go's):
The ego templating library is modeled after the ERb template library from Ruby and it's a really thin layer over the Go language. It transpiles There's even a nifty trick where |
Beta Was this translation helpful? Give feedback.
hey again! Great question. There are lots of templating implementations and Go even includes one in its standard library (html/template). There are several things I dislike about most templating libraries (including Go's):
The ego templating library is modeled after the ERb template library from Ruby and it's a really thin layer over the Go language. It transpiles
.ego
files to.go
files at compile time so that you end up with templates that are pure Go. …