GitHub - stackus/hamlet: A Haml template engine for Go
Hamlet
A Haml template engine for Go.
Features
Full Haml language support
Templates are compiled to type-safe Go
Multiple templates per file
Mix Go and templates together in the same file
Easy nesting of templates
@hmlt SiteLayout() {
!!!
%html{lang:"en"}
%head
%title Hamlet
%body
%h1 Hamlet
%p A HAML-like template engine for Go.
= @children
}
@hmlt HomePage() {
= @render SiteLayout()
%p This is the home page for Hamlet.
}
<!DOCTYPE html>
<html lang="en">
<head>
<title>Hamlet</title>
</head>
<bo...
Read more at github.com