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
AI-generated apps that pass security review Icon
AI-generated apps that pass security review

Stop waiting on engineering. Build production-ready internal tools with AI—on your company data, in your cloud.

Retool lets you generate dashboards, admin panels, and workflows directly on your data. Type something like “Build me a revenue dashboard on my Stripe data” and get a working app with security, permissions, and compliance built in from day one. Whether on our cloud or self-hosted, create the internal software your team needs without compromising enterprise standards or control.
Try Retool free
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