-#extends site
+<% extends 'site.tmpl' %>
-#block body
+<% block body %>
-<h1>Screen Ruler Generator</h1>
+<h2>Ruler Gallery </h2>
-<h2>Create a new screen ruler</h2>
+<p>To view a list of rulers others have created or to save your ruler so
+that others with your computer can find it, visit the <a
+href="/gallery">ruler gallery</a>.</p>
+
+<h2>Create Custom Ruler</h2>
+
+<% if errormsg %>
+<div class="errormsg">
+<strong>Error</strong><br />
+<%= errormsg %>
+</div>
+<% endif %>
<form method="POST" action="/">
-#include 'templates/_form_elements.tmpl'
+<% include '_form_elements.tmpl' %>
<input type="Submit" name="submit" value="Generate" />
<form>
-<p>To view a list of rulers others have created or to save your ruler so
-that others with your computer can find it, visit the <a
-href="/gallery">ruler gallery</a>.</p>
-
-#end block body
+<% endblock %>