Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions todo-app/cheats/01/project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
:description "FIXME: write description"
:url "http://example.com/FIXME"
:min-lein-version "2.0.0"
:dependencies [[org.clojure/clojure "1.9.0-alpha14"]
[compojure "1.6.0"]
[hiccup "2.0.0-alpha1"]
[ring/ring-core "1.6.1"]
[ring/ring-defaults "0.3.0"]
[ring/ring-jetty-adapter "1.6.1"]]
:plugins [[lein-ring "0.9.7"]]
:dependencies [[org.clojure/clojure "1.10.3"]
[compojure "1.6.2"]
[hiccup "2.0.0-alpha2"]
[ring/ring-core "1.9.4"]
[ring/ring-defaults "0.3.2"]
[ring/ring-jetty-adapter "1.9.4"]]
:plugins [[lein-ring "0.12.5"]]
:main todo-app.core
:ring {:handler todo-app.handler/app}
:profiles
{:dev {:dependencies [[javax.servlet/servlet-api "2.5"]
[ring/ring-mock "0.3.0"]]}})
[ring/ring-mock "0.3.2"]]}})
14 changes: 7 additions & 7 deletions todo-app/project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
:description "FIXME: write description"
:url "http://example.com/FIXME"
:min-lein-version "2.0.0"
:dependencies [[org.clojure/clojure "1.9.0-alpha14"]
[compojure "1.6.0"]
[ring/ring-core "1.6.1"]
[ring/ring-defaults "0.3.0"]
[ring/ring-jetty-adapter "1.6.1"]]
:plugins [[lein-ring "0.9.7"]]
:dependencies [[org.clojure/clojure "1.10.3"]
[compojure "1.6.2"]
[ring/ring-core "1.9.4"]
[ring/ring-defaults "0.3.2"]
[ring/ring-jetty-adapter "1.9.4"]]
:plugins [[lein-ring "0.12.5"]]
:main todo-app.core
:ring {:handler todo-app.handler/app}
:profiles
{:dev {:dependencies [[javax.servlet/servlet-api "2.5"]
[ring/ring-mock "0.3.0"]]}})
[ring/ring-mock "0.3.2"]]}})
2 changes: 1 addition & 1 deletion tutorial/chapters/01_instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ Or you can just refer all of the functions from a namespace (only a good idea if

## Task 01:

Update your application by modifiying the `project.clj` file to include a dependency to hiccup (currently in version `2.0.0-alpha1`).
Update your application by modifiying the `project.clj` file to include a dependency to hiccup (the 2.x version).

In the `src/todo_app/handler.clj` file, modify the `page` function so that it sets the title of the page and adds a variable number of elements to the body of the page. Also include the 'splendor.css' file that is a static resource in the project (found under `resources/public`) to the HTML page (HINT: use the `hiccup.page/include-css` function).

Expand Down
18 changes: 9 additions & 9 deletions tutorial/project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
:description "FIXME: write description"
:url "http://example.com/FIXME"
:min-lein-version "2.0.0"
:dependencies [[org.clojure/clojure "1.8.0"]
[compojure "1.6.0"]
[ring/ring-core "1.6.1"]
[ring/ring-defaults "0.3.0"]
[ring/ring-jetty-adapter "1.6.1"]
[hiccup "2.0.0-alpha1"]
[markdown-clj "0.9.99"]]
:dependencies [[org.clojure/clojure "1.10.3"]
[compojure "1.6.2"]
[ring/ring-core "1.9.4"]
[ring/ring-defaults "0.3.2"]
[ring/ring-jetty-adapter "1.9.4"]
[hiccup "2.0.0-alpha2"]
[markdown-clj "1.10.5"]]
:main tutorial.core
:plugins [[lein-ring "0.9.7"]]
:plugins [[lein-ring "0.12.5"]]
:ring {:handler tutorial.handler/app}
:profiles
{:dev {:dependencies [[javax.servlet/servlet-api "2.5"]
[ring/ring-mock "0.3.0"]]}})
[ring/ring-mock "0.3.2"]]}})