Answer the question
In order to leave comments, you need to log in
Which Golang template engine to choose and how to include files dynamically?
I'm using the standard Go template engine.
There are 2 questions
1. You need to run the function specified in the template itself
2. You need to connect the file specified in the template
Well, something like this
<html>
{{ GetFile "/js/myfile.js" }}
{{ SayHello }} //а функция возратит текст
</html>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question