A web application for testing and validating Jinja2 templates with support for multiple versions and file uploads.
- Template validation and rendering
- File upload support for templates and data
- JSON and YAML data format support
- Error handling and validation feedback
- Responsive web interface
- Python 3.8 or higher
uvpackage installer
- Install
uvif you haven't already:
pip install uv- Clone the repository:
git clone <repository-url>
cd jinja2-testerStart the Flask development server using uv:
uv run jinja2_testerThe application will be available at http://localhost:5000
Create a .env file in the project root with the following variables:
FLASK_ENV=development
SECRET_KEY=your-secret-key-here
MAX_TEMPLATE_SIZE=50KB
MAX_FILE_UPLOAD_SIZE=5MB
EXECUTION_TIMEOUT=5
- Open your web browser and navigate to
http://localhost:5000 - Enter or upload a Jinja2 template
- Enter or upload JSON/YAML data
- Click "Validate and Render" to process the template
- View the validation results and rendered output
.j2.jinja.jinja2.html.txt
.json.yaml.yml
To contribute to the project:
- Create a new branch:
git checkout -b feature/your-feature-name- Make your changes and commit them:
git commit -m "Add your feature description"- Push to your branch:
git push origin feature/your-feature-name- Create a Pull Request
[Add your license information here]
[Add contribution guidelines here]