-
Testing
-
-
- And last but not least, Testing. In test/Spec.hs you will find a #
- test suite that performs tests on this page.
-
- You can run your tests by doing: stack test
diff --git a/templates/homepage.julius b/templates/homepage.julius
deleted file mode 100644
index c04a285e6..000000000
--- a/templates/homepage.julius
+++ /dev/null
@@ -1,34 +0,0 @@
-document.getElementById(#{toJSON aDomId}).innerHTML = "This text was added by the Javascript part of the homepage widget.";
-
-$(function() {
- $("##{rawJS commentFormId}").submit(function(event) {
- event.preventDefault();
-
- var message = $("##{rawJS commentTextareaId}").val();
- // (Browsers that enforce the "required" attribute on the textarea won't see this alert)
- if (!message) {
- alert("Please fill out the comment form first.");
- return;
- }
-
- // Make an AJAX request to the server to create a new comment
- $.ajax({
- url: 'null.invalid',
- type: 'POST',
- contentType: "application/json",
- data: JSON.stringify({
- message: message,
- }),
- success: function (data) {
- var newNode = $("
");
- newNode.text(data.message);
- console.log(data);
- $("##{rawJS commentListId}").append(newNode);
- },
- error: function (data) {
- console.log("Error creating comment: " + data);
- },
- });
-
- });
-});
diff --git a/templates/homepage.lucius b/templates/homepage.lucius
deleted file mode 100644
index 3197fd5ce..000000000
--- a/templates/homepage.lucius
+++ /dev/null
@@ -1,13 +0,0 @@
-h2##{aDomId} {
- color: #990
-}
-
-li {
- line-height: 2em;
- font-size: 16px
-}
-
-##{commentTextareaId} {
- width: 400px;
- height: 100px;
-}