# `PhoenixKit.Modules.Emails.Web.TemplateEditor`
[🔗](https://github.com/BeamLabEU/phoenix_kit_emails/blob/0.4.2/lib/phoenix_kit/modules/emails/web/template_editor.ex#L1)

LiveView for creating and editing email templates in PhoenixKit admin panel.

Provides a comprehensive template editor with live preview, variable management,
test sending functionality, and template validation.

## Features

- **Live Preview**: Real-time HTML and text preview with variable substitution
- **Variable Management**: Define and validate template variables
- **Template Validation**: Real-time validation of template content
- **Test Send**: Send test emails using the template
- **Version Control**: Track template versions and changes
- **Syntax Highlighting**: Basic HTML syntax awareness

## Routes

- `/admin/emails/templates/new` - Create new template
- `/admin/emails/templates/:id/edit` - Edit existing template

## Permissions

Access is restricted to users with admin or owner roles in PhoenixKit.

# `render`

---

*Consult [api-reference.md](api-reference.md) for complete listing*
