Fet

screenshot of Fet
html

A golang template engine that can compile code into `html/template`, use syntax like the php template engine smarty.

Overview

FET is a golang template engine that translates smarty-like template code into golang html/template. The name FET stands for Friendly, Easily for Template code. While the official golang package html/template is a fully functional template engine, it has some defects in terms of user experience, and FET aims to improve upon these issues.

Features

  • Expression logics
  • Use include with defined variable scopes
  • Use extends to inherit base template with defined variable scopes
  • Limited support for for and capture

Summary

FET is a golang template engine that aims to improve upon the user experience of the official html/template package. It provides features such as expression logics, variable scopes, and support for inheritance and loops. By using FET, developers can easily translate smarty-like template code into golang html/templates.

html
HTML

HTML templates are pre-designed and pre-built web pages that can be customized and used as a basis for building websites. They often include common elements such as headers, footers, menus, and content sections, and can be easily edited using HTML and CSS to fit specific branding and content needs.