Skip to content

Feature Request: Gomplate as a Template Manager #589

@osterman

Description

@osterman

@hairyhenderson I understand this may be a long shot feature request! Anyways, just wanted to get it on your radar, in case it sounds cool.

what

  • support a way to create templatized projects, e.g. a full-fledged template manager for boilerplate code
  • provide a common way to reference project templates e.g. using github repos
  • support a project config file with properties (variables) and a github project source for the template.

why

  • Sometimes more "abstractions" is just more convoluted when simple template generation does the job. Template generation is very well understood. It allows projects to diverge, but also provides a way to systematically update by regenerating templates
  • The boilr project appears abandoned
  • Gomplate is insanely powerful for templating

our use-cases

Don't get me wrong, gomplate can do this today with some scripting. We do it already to some degree at cloudposse. Just I would love if gomplate became a convention for how to structure templatized projects, rather than everyone creating their own convention. E.g. today, we use a Makefile with a bunch of custom scripting.

  1. We generate our README.md from a README.yaml
  2. Generate the LICENSE file from the projects configuration
  3. Automatically create .github/workflows (or travis/circle/codefresh pipelines) for a project with template parameters
  4. Create the scaffolding for "terraform" modules

prior art

Metadata

Metadata

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions