slagyr / joodoweb

Site for Joodo: Clojure web framework
4 stars 5 forks source link

Minor namespace require typos #5

Open jconti opened 11 years ago

jconti commented 11 years ago

Since leaving Gaeshi and moving to the latest Joodo, I had to make one minor change:

Was:

(ns sample_app.view.view-helpers
  "Put helper functions for views in this namespace."
  (:require [joodo.views :refer [render-partial *view-context*]]
            [chee.string :refer [gsub]]
            [hiccup.page-helpers :refer :all]
            [hiccup.form-helpers :refer :all]
            [sample_app.controller.post-controller :refer [blog-post-filenames]]
            [clojure.string :as string :refer [split]]))

To:

(ns sample_app.view.view-helpers
  "Put helper functions for views in this namespace."
  (:require [joodo.views :refer [render-partial *view-context*]]
            [chee.string :refer [gsub]]
            [hiccup.page :refer :all]
            [hiccup.form :refer :all]
            [sample_app.controller.post-controller :refer [blog-post-filenames]]
            [clojure.string :as string :refer [split]]))
slagyr commented 11 years ago

Recent versions if joodo use newer versions of hiccup. The namespaces in hiccup changed.

Micah

On Feb 20, 2013, at 7:14 PM, John Conti notifications@github.com wrote:

Since leaving Gaeshi and moving to the latest Joodo, I had to make one minor change:

Was:

(ns sample_app.view.view-helpers "Put helper functions for views in this namespace." (:require [joodo.views :refer [render-partial view-context]] [chee.string :refer [gsub]] [hiccup.page-helpers :refer :all] [hiccup.form-helpers :refer :all] [sample_app.controller.post-controller :refer [blog-post-filenames]] [clojure.string :as string :refer [split]])) To:

(ns sample_app.view.view-helpers "Put helper functions for views in this namespace." (:require [joodo.views :refer [render-partial view-context]] [chee.string :refer [gsub]] [hiccup.page :refer :all] [hiccup.form :refer :all] [sample_app.controller.post-controller :refer [blog-post-filenames]] [clojure.string :as string :refer [split]])) — Reply to this email directly or view it on GitHub.

jconti commented 11 years ago

Sorry, I wasn't very clear. The code with the old namespaces is on the website's sample code at the following url:

http://joodoweb.com/tutorial/views

I think I cannot edit with my free github account, so this was an effort to help fix the old code shown on the website.

As always, thanks for the code!

,John