在Golang Web应用程序开发中,可以将Go的模板与jade(pug)模板引擎一起使用吗?

I'm developing Go web application and using Go's built-in template. I can use Emmet to quickly generate HTML code snippets. However, I do prefer the succinct jade template engine (renamed to pug recently). I want to know if it possible to use jade (pug) with Go and how to set it up. Thanks in advance.

The hard way would be to have a separated nodejs process to compile the template on the go. The easy way would be, like @Mario said, to use a golang implementation of jade engine.

Take a look at this library and the documentation.

pixy is very similar to Pug / Jade and offers a code generator via pack to achieve very high performance with Go type-safety.