From 91564be3937b917f42667b21c4429743f589c938 Mon Sep 17 00:00:00 2001 From: "Howard M. Lewis Ship" Date: Thu, 25 Jun 2015 08:39:10 -0700 Subject: [PATCH] Add some examples of extended Hiccup to the README --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index f0d6b38..26db862 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,20 @@ Reagent uses [Hiccup-like](https://github.com/weavejester/hiccup) markup instead " text."]]) ``` +Reagent extends standard Hiccup in one way: it is possible to "squeeze" elements together by using a `>` character. + +```clj +[:div + [:p + [:b "Nested Element"]]] +``` + +can be written as: + +```clj +[:div>p>b "Nested Element"] +``` + You can use one component inside another: ```clj