8000 Custom templating: custom templates not associated with non-asset dependencies · Issue #1362 · go-swagger/go-swagger · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Custom templating: custom templates not associated with non-asset dependencies #1362
Closed
@fredbi

Description

@fredbi

Problem statement

When defining new custom templates declared in the config file, I couldn't introduce dependencies with other custom templates.

However, all these files all well loaded in the templates repo.

But at rendering time, all such custom files are just loaded from files and not given a namespace of dependencies like we do for asset templates.

This was annoying when trying to maintain bloated templates and trying a bit of refactoring there...

Patched the problem at home. Will share the solution with a PR if feature agreed upon.

Swagger specification

N/A

Steps to reproduce

Environment

swagger version: current master
go version: x.x.x
OS:

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0