Skip to content

Use proper templating engine for scaffolded files #1617

@philliphoff

Description

@philliphoff

The text definition/manipulation we use to scaffold files (e.g. Docker files) is...not pretty. It'd be nice to move to a proper templating engine to get the inline strings into separate files and stop cluttering up the actual scaffolding logic.

I don't have a huge preference on any particular template engine; we're using Handlebars in another extension and it seems to work reasonably well.

@bwateratmsft edit: From @conradwt in #2026:

Goal
I would like to be able to add additional languages as well as customize existing languages for my development workflows without having to submit a PR to update the extension.
Currently
The supported languages are fixed and new customizations need to be redeployed within a future version of this extension.
Possible Solution
Extend the extension to allow users to add their own templates to a designated directory that would get picked up and displayed within VS Code when one uses Docker Add command.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions