Hiccup Cheatsheet

375 views
Skip to first unread message

Nicolas Buduroi

unread,
Apr 14, 2010, 12:36:31 PM4/14/10
to Compojure
Hi, I've took a long break from web development in the past few months
and needed a refresher on compojure.html/hiccup syntax. The source
code is small enough to serve as documentation, but it's always nice
to have a cheatsheet, so I've done one:

http://compojure.googlegroups.com/web/hiccup_cheatsheet.html?gsc=eSFbGRYAAABcKppx8PmVpO10MaS4xhs6wDnRq-Rbrs5DMwXoiOZsvg

mpenet

unread,
Apr 14, 2010, 2:24:25 PM4/14/10
to Compojure
Hi,

There's a mistake in the section about css file inclusion, you are
using include-js instead of include-css.

"Including CSS files" '(include-js "foo.css" "bar.css")


On Apr 14, 6:36 pm, Nicolas Buduroi <nbudu...@gmail.com> wrote:
> Hi, I've took a long break from web development in the past few months
> and needed a refresher on compojure.html/hiccup syntax. The source
> code is small enough to serve as documentation, but it's always nice
> to have a cheatsheet, so I've done one:
>

> http://compojure.googlegroups.com/web/hiccup_cheatsheet.html?gsc=eSFb...

Nicolas Buduroi

unread,
Apr 14, 2010, 2:43:48 PM4/14/10
to Compojure
On Apr 14, 2:24 pm, mpenet <zcams...@gmail.com> wrote:
> Hi,
>
> There's a mistake in the section about css file inclusion, you are
> using include-js instead of include-css.
>
> "Including CSS files"        '(include-js "foo.css" "bar.css")

Thanks, fixed now.

Anybody knows how to update uploaded files in Google Group?

James Reeves

unread,
Apr 14, 2010, 9:09:03 PM4/14/10
to Compojure
On Apr 14, 5:36 pm, Nicolas Buduroi <nbudu...@gmail.com> wrote:
> Hi, I've took a long break from web development in the past few months
> and needed a refresher on compojure.html/hiccup syntax. The source
> code is small enough to serve as documentation, but it's always nice
> to have a cheatsheet, so I've done one:
>
> http://compojure.googlegroups.com/web/hiccup_cheatsheet.html?gsc=eSFb...

If you don't mind, could I incorporate that into the Hiccup
documentation? :)

I'd also suggest adding an example that shows how seqs are expanded in
Hiccup. For example:

[:span (list "a" "b" "c")] => "<span>abc</span>"

- James

Nicolas Buduroi

unread,
Apr 15, 2010, 1:46:01 PM4/15/10
to Compojure
> If you don't mind, could I incorporate that into the Hiccup
> documentation? :)

No problemo!

> I'd also suggest adding an example that shows how seqs are expanded in
> Hiccup. For example:
>
>   [:span (list "a" "b" "c")] => "<span>abc</span>"

Done, I've included the demo and cheatsheet in my dev branch:

http://github.com/budu/hiccup/tree/dev

Reply all
Reply to author
Forward
0 new messages