Hero is a handy, fast and powerful go template engine, which pre-compiles the HTML templtes to go code. It has been used in a production environment in bthub.io. The function definition statement defines the function which represents a html file. The function defined should return one and only one parameter []byte. Extend statement states the parent template the current template extends. Include statement includes a sub-template to the current template. It works like #include in C++. Import statement imports the packages used in the defined function, and it also contains everything that is outside of the defined function. Block statement represents a block. Child template overwrites blocks to extend parent template.

Features

  • Easy to use
  • Powerful. template Extend and Include supported
  • High performance
  • Auto compiling when files change
  • Hero is the fastest and least-memory used among currently known template engines in the benchmark
  • Extend statement states the parent template the current template extends

Project Samples

Project Activity

See All Activity >

Categories

Admin Templates

License

MIT License

Follow Hero

Hero Web Site

Other Useful Business Software
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Hero!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

Go

Related Categories

Go Admin Templates

Registered

2023-01-30