Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Go templates in HTML #881

Closed
basbebe opened this issue Feb 21, 2016 · 3 comments
Closed

Go templates in HTML #881

basbebe opened this issue Feb 21, 2016 · 3 comments

Comments

@basbebe
Copy link

basbebe commented Feb 21, 2016

Go templates as used by Hugo don't beautify as expected.

This

<!DOCTYPE html>

<html lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en-US{{ end }}">

<head>
    {{ partial "head.html" . }}
</head>

<body id="page-top" class="index">

    {{ partial "nav.html" . }}

    {{ partial "header.html" . }} 
    {{ partial "portfolio-grid.html" . }} 
    {{ partial "about.html" . }} 
    {{ partial "contact.html" . }} 
    {{ partial "footer.html" . }} 
    {{ partial "modals.html" . }} 
    {{ partial "js.html" . }}

</body>

</html>

becomes this

<!DOCTYPE html>

<html lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en-US{{ end }}">

<head>
    {{ partial "head.html" . }}
</head>

<body id="page-top" class="index">

    {{ partial "nav.html" . }} {{ partial "header.html" . }} {{ partial "portfolio-grid.html" . }} {{ partial "about.html" . }} {{ partial "contact.html" . }} {{ partial "footer.html" . }} {{ partial "modals.html" . }} {{ partial "js.html" . }}

</body>

</html>
@basbebe
Copy link
Author

basbebe commented Jan 25, 2017

Any news on this one?

@bitwiseman
Copy link
Member

No, sorry. There are a number of higher priority features and bugs, and not enough contributors to get to this.

@bitwiseman
Copy link
Member

This has been handled by newline preservation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants