Skip to content

Instantly share code, notes, and snippets.

@ericlbarnes
Last active December 10, 2015 12:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ericlbarnes/4434895 to your computer and use it in GitHub Desktop.
Save ericlbarnes/4434895 to your computer and use it in GitHub Desktop.
{{ email:form subject="Contact Form" to="eric@ericlbarnes.com" required="name" }}
{{ if error}}
<h1>Error</h1>
<ul>
{{ errors }}
<li>{{error}}</li>
{{ /errors }}
</ul>
{{ endif }}
{{ if success }}
<h1>IT WORKED!</h1>
{{ else }}
<p>
<label for="name">Name:</label>
<input type="text" name="name" id="name" value="Bill">
</p>
<p>
<label for="from">Email:</label>
<input type="text" name="from" id="from" value="test@test.com">
</p>
<p><input type="submit"></p>
{{ endif }}
{{ /email:form }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment