Skip to content

VSCode extension for building HTML files by replacing placeholders with values from a json file

Notifications You must be signed in to change notification settings

mleziva/htmlBuild

Repository files navigation

VSCode - HTMLBuild README

This VS Code extension replaces placeholders in HTML files with values in a json file. Use it to manage and generate HTML files for different environments. Based on the azure-ad-b2c vscode extensions available here: https://github.com/azure-ad-b2c/vscode-extension

Get Started


To get started, open the folder which contains your html files.

Run the HtmlBuild command of the extension for the first time to generate the sample appsettings.json file.

HTMLBuild Command

Review the created file

AppSettings.json

Update your html file to contain some settings to replace HTML file with settings

Run the BuildHtml command to generate the output files HTMLBuild Command

Review the output files HTMLBuild Command


Notes

The logic for the replace works on a case-insensitive match to {Settings:[settingname]}, so if you have content in your html file that happens to match that, it will be erroneously replaced.

Known Issues

None

Release Notes

Very first release ever

0.0.1

Initial release


About

VSCode extension for building HTML files by replacing placeholders with values from a json file

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published