From bb39d4e1b7c8aa67301db9dcd179b967eaab940c Mon Sep 17 00:00:00 2001 From: gered Date: Sun, 30 Mar 2014 17:13:57 -0400 Subject: [PATCH] pass list of flf font names to the main template --- src/toascii/routes/home.clj | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/toascii/routes/home.clj b/src/toascii/routes/home.clj index bff4bae..8719eff 100644 --- a/src/toascii/routes/home.clj +++ b/src/toascii/routes/home.clj @@ -1,11 +1,13 @@ (ns toascii.routes.home (:require [toascii.route-utils :refer [register-routes]] - [toascii.views.layout :as layout]) + [toascii.views.layout :as layout] + [toascii.models.flf :refer [get-font-names]]) (:use compojure.core)) (defn home-page [] (layout/render - "home.html")) + "home.html" + :params {:fontNames (get-font-names)})) (register-routes home-routes (GET "/" [] (home-page)))