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
Skillfully - The future of skills based hiring Icon
Skillfully - The future of skills based hiring

Realistic Workplace Simulations that Show Applicant Skills in Action

Skillfully transforms hiring through AI-powered skill simulations that show you how candidates actually perform before you hire them. Our platform helps companies cut through AI-generated resumes and rehearsed interviews by validating real capabilities in action. Through dynamic job specific simulations and skill-based assessments, companies like Bloomberg and McKinsey have cut screening time by 50% while dramatically improving hire quality.
Learn More
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