The Form Shape#
A TemplateX form starts with a paired form tag:
{{ form:contact }} <form> <label>Name</label> <input name="name" required> {{ form:error:name }} <label>Email</label> <input name="email" type="email" required> {{ form:error:email }} {{ form:success }} <p>Thanks, {{ name }}.</p> {{ /form:success }} <button type="submit">Send</button> </form>{{ /form:contact }}TemplateX discovers the fields from the inputs and compiles the form to native PHP.