diff --git a/yqtemplate.lua b/yqtemplate.lua
index b228aae..1bad8a3 100644
--- a/yqtemplate.lua
+++ b/yqtemplate.lua
@@ -1,7 +1,34 @@
+local etlua = require"etlua"
+local form = etlua.compile[[
+
+
+
+ Yokoka’s Quest Character Profile Creator
+
+
+<% if data then %><%= data %><% end %>
+
+
+Based on the character profiles in the webcomic Yokoka’s Quest by Chris Hyacinth R. Assets
+shared by the author on the webcomic’s forums.
+
+
+]]
+
return {
desc = "Creates Yokoka’s quest-style personal status page",
run = function(fcgi)
- fcgi.print("Content-Type: text/plain; charset=utf-8\r\n\r\n")
- fcgi.print("Hello from application `YQTemplate'")
+ fcgi.print("Content-Type: text/html; charset=utf-8\r\n\r\n")
+ local data = nil
+ if fcgi.getenv("REQUEST_METHOD") == "POST"
+ data = fcgi.post()
+ end
+ form({data = data})
end
}