shiyanhui / hero

A handy, fast and powerful go template engine.
https://shiyanhui.github.io/hero
Other
1.57k stars 98 forks source link

More examples needed #63

Open odiferousmint opened 5 years ago

odiferousmint commented 5 years ago

Hello.

Sadly there is only one example which calls the function UserList, but what if we don't have it? Right now I only have 3 files, index.html, header.html, and footer.html. In index.html I include them using <%+ "header.html" %>, but how do I use it? What method would I call to get the buffer containing the HTML code that I can pass to the web server?