diff options
author | Thel Seraphim <thel.seraphim@gmail.com> | 2015-03-13 19:34:43 -0700 |
---|---|---|
committer | Thel Seraphim <thel.seraphim@gmail.com> | 2015-03-13 19:34:43 -0700 |
commit | ec62e36ee31ffd6a0ee2370451448b8967f4d10a (patch) | |
tree | 1763d61a4840d954f9b1fec8dc94f1a7fac8293e /src/pronouns | |
parent | 04402da472a3dd7698453a1561e332682c0b5c7e (diff) |
include hiccup library and small functioning example, don't merge until it looks nice.
Diffstat (limited to 'src/pronouns')
-rw-r--r-- | src/pronouns/pages.clj | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/pronouns/pages.clj b/src/pronouns/pages.clj index f1f8b67..16c92b4 100644 --- a/src/pronouns/pages.clj +++ b/src/pronouns/pages.clj @@ -1,16 +1,23 @@ (ns pronouns.pages (:require [clojure.string :as s] - [pronouns.util :as u])) + [pronouns.util :as u] + [hiccup.core :refer :all])) + +(defn subject-example + [subject] + [:span#blah [:b subject] " went to the park."]) (defn format-pronoun-examples [subject object possessive-determiner possessive-pronoun reflexive] (s/join "\n" [(str subject " went to the park") + (html (subject-example subject)) (str "I went with " object) (str subject " brought " possessive-determiner " frisbee") (str "at least I think it was " possessive-pronoun) (str subject " threw it to " reflexive)])) + (defn parse-pronouns-with-lookup [pronouns-string pronouns-table] (let [inputs (s/split pronouns-string #"/") n (count inputs)] |