whole bunch of changes to make things work cleanly on the server
[yourule] / templates / index.tmpl
index d8cdc8158f0119c03c8bcd9c2dde93b0823c0002..bcac6d974cfe6be5032b90a72d4753a88026fa4e 100644 (file)
@@ -1,20 +1,27 @@
-#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="<%= homepath %>/gallery">ruler gallery</a>.</p>
 
-<form method="POST" action="/">
+<h2>Create Custom Ruler</h2>
 
-#include 'templates/_form_elements.tmpl'
+<% if errormsg %>
+<div class="errormsg">
+<strong>Error</strong><br />
+<%= errormsg %>
+</div>
+<% endif %>
 
-<input type="Submit" name="submit" value="Generate" />
-<form>
+<form method="POST" action="<%= homepath %>/">
 
-<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>
+<% include '_form_elements.tmpl' %>
+
+<input type="Submit" name="submit" value="Generate" />
+</form>
 
-#end block body
+<% endblock %>

Benjamin Mako Hill || Want to submit a patch?