Live data from Hacker News

Hamlet: A type-safe Haml template engine for Go

github.com

1–10 of 42 posts

Re: Hamlet: A type-safe Haml template engine for Go

#3
I appreciate that in JSX, functions can be used as if they were first-class elements.

In this case that would be accomplished by supporting the following instead:

    @hmlt HomePage() {
      %SiteLayout
        %p This is the home page for Hamlet.
    }
Which is much cleaner IMO.

Re: Hamlet: A type-safe Haml template engine for Go

#5

The example has left me with a strong impression I should avoid this and HAML. That syntax frightens me.

SLIM is similar, but a bit cleaner: https://github.com/mattn/go-slim

Both SLIM and HAML resemble a DOM tree, it looks somewhat similar to what you would see in the browser inspector.

Re: Hamlet: A type-safe Haml template engine for Go

#7
post #5

The example has left me with a strong impression I should avoid this and HAML. That syntax frightens me.

SLIM is similar, but a bit cleaner: https://github.com/mattn/go-slim Both SLIM and HAML resemble a DOM tree, it looks somewhat similar to what you would see in the browser inspector.

Is HTML really that scary for people?

Re: Hamlet: A type-safe Haml template engine for Go

#9
post #5

Earlier quoted context omitted.

SLIM is similar, but a bit cleaner: https://github.com/mattn/go-slim Both SLIM and HAML resemble a DOM tree, it looks somewhat similar to what you would see in the browser inspector.

Is HTML really that scary for people?

I haven't seen many projects where people attempt to use SLIM templates as an alternative to HTML; rather, they are used as a complement. SLIM is for deeply nested structures and layouts, while HTML is for actual content.

Re: Hamlet: A type-safe Haml template engine for Go

#10
post #5

Earlier quoted context omitted.

SLIM is similar, but a bit cleaner: https://github.com/mattn/go-slim Both SLIM and HAML resemble a DOM tree, it looks somewhat similar to what you would see in the browser inspector.

Is HTML really that scary for people?

HTML isn’t a templating language like HAML or Slim are.
Post reply on HN