diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/pronouns/pages.clj | 4 | ||||
-rw-r--r-- | src/pronouns/web.clj | 5 |
2 files changed, 8 insertions, 1 deletions
diff --git a/src/pronouns/pages.clj b/src/pronouns/pages.clj index 3132dbe..73ba2f4 100644 --- a/src/pronouns/pages.clj +++ b/src/pronouns/pages.clj @@ -72,7 +72,9 @@ [subject object possessive-determiner possessive-pronoun reflexive] (html [:html - [:head ""] + [:head + [:title "Pronoun examples"] + [:link {:rel "stylesheet" :href "/pronouns.css"}]] [:body (examples-block subject object possessive-determiner possessive-pronoun reflexive) (about-block) diff --git a/src/pronouns/web.clj b/src/pronouns/web.clj index ef6e666..2189038 100644 --- a/src/pronouns/web.clj +++ b/src/pronouns/web.clj @@ -28,6 +28,11 @@ :headers {"Content-Type" "text/html"} :body (pages/pronouns (:* params) pronouns-table)}) + (GET "/pronouns.css" {params :params} + {:status 200 + :headers {"Content-Type" "text/css"} + :body (slurp (io/resource "pronouns.css"))}) + (ANY "*" [] (route/not-found (slurp (io/resource "404.html"))))) |