Debian Codegraph @

doc/www/index.scm

raw symbols SCIP
1 (define page
2 '((h2 "guile-cairo")
3
4 (p "Guile-Cairo wraps
5 the " (a (@ (href "http://cairographics.org/")) "Cairo graphics
6 library") "
7 for " (a (@ (href "http://www.gnu.org/software/guile/")) "Guile
8 Scheme") ".")
9
10 (p "Guile-Cairo is complete, wrapping almost all of the Cairo API.
11 It is API stable, providing a firm base on which to do graphics work.
12 Finally, and importantly, it is pleasant to use. You get a powerful and
13 well-maintained graphics library with all of the benefits of Scheme:
14 memory management, exceptions, macros, and a dynamic programming
15 environment.")
16
17 (h3 (@ (style "text-align: center")) "latest news")
18
19 (latest-news)
20
21 (h4 (rlink "news/" "older news..."))))
22
23 (load "template.scm")
24
25 (define this-page page)
26 (load "news/index.scm")
27 (define news-page page)
28 (define page this-page)
29
30 (define (news tag args . body)
31 `(div (h4 ,@(assq-ref (cdr args) 'date) ": "
32 ,@(assq-ref (cdr args) 'title))
33 (p ,@body)))
34
35 (define (latest-news . body)
36 (cadr news-page))
37
38 (define (make-index)
39 (output-html page "guile-cairo" "guile-cairo" ""
40 #:transform-rules `((news . ,news)
41 (latest-news *macro* . ,latest-news))))