Training
Bootcamp
Courses
Tech Sessions
Resources
Blog
Tips
GitHub
YouTube
Newsletter
Playgrounds
Pricing
Sign In
Become Member
Jinja2 Renderer
Validate and test the rendering of your Jinja templates
Tools
J2 Renderer
TTP Parser
TextFSM Parser
XPath Tester
Members Only
JMESPath Validator
JSON Schema Validator
Data Format Converter
Help Us Improve
Jinja Template
hostname {{ device }} {% for server in ntp_servers %} ntp server {{ server }} {% endfor %} {% for syslog_server in syslog_servers %} logging host {{ syslog_server }} {% endfor %}
Jinja Data
{ 'device': "leaf1", 'ntp_servers': ['11.11.11.1', '192.168.100.2','11.11.11.1'], 'syslog_servers': ['192.168.200.1', '192.168.200.2'] }
Result
hostname leaf1 ntp server 11.11.11.1 ntp server 192.168.100.2 ntp server 11.11.11.1 logging host 192.168.200.1 logging host 192.168.200.2
Show whitespace
Trim blocks
Lstrip blocks
Render
Share
Auto-Sync