Is it possible to reuse `baseof.html` on custom output format (HTML) template?

Hi, is there a workaround to reuse the baseof.html in custom output format template?

// baseof.html
<html>
  {{ block "main" . }}{{ end }}
</html>

I can not reuse it on my output formate template

TEXT OUTSIDE THE MAIN BLOCK WORKS.

{{ define "main" }}
  TEXT INSIDE NOT WORKING.
{{ end }}

Any ideas? Thanks.

How have you defined the output format and associated media type?

1 Like

keep in mind

Code that you put outside the block definitions can break your layout. This even includes HTML comments. For example:…

see

2 Likes

Oops, that’s the root cause. It works after removing the content outside of the define block.

Thank you all!

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.