This chapter covers the core features and capabilities of Form Template Library.
# List all available templates
python src/form_template_library.py --list
# Render a template to HTML
python src/form_template_library.py --render contact
# Export a template as JSON
python src/form_template_library.py --json registration
# Render to file
python src/form_template_library.py --render checkout --output checkout.html
# Export all templates to a directory
python src/form_template_library.py --export-all ./exported_templates/Follow this guide to get Form Template Library up and running in your environment.
| Flag | Description |
|---|---|
--list | List all available template names |
--render TEMPLATE | Render a template to HTML |
--json TEMPLATE | Export a template definition as JSON |
--export-all DIR | Export all templates as JSON to a directory |
--output FILE | Write output to a file instead of stdout |
| Template | Description | Fields |
|---|---|---|
contact | Basic contact form | name, email, subject, message |
registration | User sign-up | username, email, password, confirm_password |
login | Sign-in form | email, password, remember_me |
checkout | Payment/order form | name, email, card_number, expiry, cvv, address |
feedback | Product/service feedback | name, email, rating, category, comments |
newsletter | Email subscription | email, first_name, interests |
support_ticket | Customer support | name, email, priority, category, description |
job_application | Employment application | name, email, phone, position, resume, cover_letter |
event_registration | Event sign-up | name, email, event, ticket_type, dietary |
survey_basic | Simple survey form | name, satisfaction, recommend, comments |
password_reset | Password recovery | |
profile_edit | Profile settings | display_name, email, bio, avatar, website |
booking | Appointment/reservation | name, email, date, time, service, notes |
referral | Refer-a-friend | your_name, your_email, friend_name, friend_email |
quote_request | Quote/estimate request | company, name, email, service, budget, timeline |
bug_report | Bug/issue report | title, severity, steps, expected, actual, environment |
waitlist | Waitlist sign-up | email, name, use_case |
donation | Donation form | name, email, amount, recurring, message |
shipping_address | Shipping details | name, address1, address2, city, state, zip, country |
invite | Invite users | emails, message, role |
settings | App settings | theme, language, timezone, notifications, email_digest |
Get the full Form Template Library and unlock everything.
Get the complete guide with every chapter unlocked, including code samples, diagrams, and best practices.
Access all interactive tools with complete data, all workload profiles, and the full scenario library.
Downloadable source code, configuration files, and working examples from every chapter.
Free updates for life. Every new chapter, tool, and improvement included.