8000 Improve readability of templates used for code generation · Issue #673 · go-swagger/go-swagger · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Improve readability of templates used for code generation #673
Closed
@dnephin

Description

@dnephin

golang templates support the use of {{- ... -}} to remove extra whitespace between tags in templates.

This allows you to write templates which are easily readable by humans, without the extra whitespace changing the output of the rendered template.

I have found that using this style makes it a lot easier to understand the templates.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0