Gives a live preview for Braze Liquid templates. The extension compiles Braze Liquid template on the fly, applying preview data and rendering resulting HTML in separate window.
The code is based on Trevor Kirchner's vscode-shopify-liquid-preview. I extended it with additional Braze specific tags and filters so it works for Braze liquid too.
- Live preview for Braze Liquid templates, updating as you type
- Support for fake data. Assuming your template file name is
template.liquid
, add a filetemplate.liquid.json
in the same directory to be a context of the template
- Use the keybinding
ctrl+k v
while selecting a file with a.liquid
extension - Use the keybinding
ctrl+shift+p
and type Braze Liquid: Open Preview to the Side to run from command panel
Running with npm
npm install
npm run test
Test your extension with Visual Studio Code
The Braze templating features are provided by brazejs, refer to its README for supported features and usage.