Skip to content

ArtyMaury/template-finder

Repository files navigation

Template Finder

This extension helps you manage your templated files by showing you the values of the different templated variables.

The best use-case would be to have a folder with templated files, and other ones with files containing the different possible values of the variables.

The templating format used is Jinja, used for example by Ansible playbooks.

example

Getting started

Important
The templated files and the variables values have to be in the same workspace. If not, please use multi-root workspaces

Requirements
The configuration files have to be yaml files, with the .yml extension

Activate

Run the VSCode command Template Finder: Activate in this workspace

Customize

Sometimes variables are not defined in your workspace but by an external tool. For example an ansible extra-var passed in command-line. To avoid showing these variables as undefined, you can set:

"templateFinder.variables.externalVariables": [
    "ansible_env\\..*",
    "my_external_variable"
]

Issues

If you notice any irregularities or have any idea on how to improve this extension, please open an issue on Github

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •