A powerful Visual Studio Code extension for rendering and debugging Mustache templates with live preview, partial support, and jump-to-definition features.
Features
Live Preview: See your Mustache templates render in real-time as you edit
Partial Support: Automatically detects and includes partials from your workspace
Jump-to-Definition: Navigate to partials and variables directly from your template
Template Warnings: Get instant feedback on undefined variables, empty sections, and syntax errors
Beautiful UI: Clean, intuitive interface in a dedicated VS Code view container
Usage
Install the extension
Open a .mustache file in your editor
Click the Mustache icon in the Activity Bar to open the Template Preview panel
Edit your template and see the changes update in real-time
Use the JSON input field to test your template with different data
Debugging Features
The Mustache Template Renderer provides comprehensive diagnostics to help you catch issues early:
Syntax Errors: Highlights invalid Mustache syntax
Undefined Variables: Warns about variables that aren't defined in your data context
Empty Sections: Identifies sections that render empty due to missing or falsy values
Missing Partials: Alerts you when referenced partials can't be found
Extension Settings
This extension contributes the following settings:
mustacheRenderer.partialSearchPaths: Additional paths to search for partial templates
Requirements
No additional requirements or dependencies needed.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.