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
Categories
Admin TemplatesLicense
MIT LicenseFollow Hero
You Might Also Like
BrightGauge, a ConnectWise solution, was started in 2011 to fill a missing need in the small-to-medium IT Services industry: a better way to manage data and provide the value of work to clients. BrightGauge Software allows you to display all of your important business metrics in one place through the use of gauges, dashboards, and client reports. Used by more than 1,800 companies worldwide, BrightGauge integrates with popular business solutions on the market, like ConnectWise, Continuum, Webroot, QuickBooks, Datto, IT Glue, Zendesk, Harvest, Smileback, and so many more. Dig deeper into your data by adding, subtracting, multiplying, and dividing one metric against another. BrightGauge automatically computes these formulas for you. Want to show your prospects how quick you are to respond to tickets? Show off your data with embeddable gauges on public sites.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of Hero!