forked from macourtney/Conjure
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a layouts directory to view, and added a default application.clj layout. Changed render-view in controller base.clj to a multimethod, and added an optional parameters map.
- Loading branch information
Matt Courtney
committed
Aug 10, 2009
1 parent
6783168
commit 203b485
Showing
5 changed files
with
40 additions
and
11 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
(ns views.layouts.application | ||
(:use conjure.view.base) | ||
(:require [clj-html.core :as html])) | ||
|
||
(defview [body] | ||
(html/html | ||
[:html | ||
[:body | ||
body]])) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters