[racket] Scribble in continue
I meant the @ syntax just like your example, but I was thinking of the
@syntax being entered by the user via the browser
In 'continue' roughly (make-post "First Post" "@p{Hello @bold{World}} ")
What do you think?
Stephen
(define (show-help req)
`(html
(head (title "DrDr > Help")
(link ([rel "stylesheet"] [type "text/css"] [href "/render.css"])))
(body
(div ([class "dirlog, content"])
; XXX Use same function as above
(span ([class "breadcrumb"])
(a ([class "parent"] [href "/"]) "DrDr") " / "
(span ([class "this"])
"Help"))
@div[[(class "help")]]{
@h1{What is DrDr?}
@p{DrDr is a server at @a[[(href
"http://www.byu.edu")]]{Brigham Young University} that builds
and "tests" every push to the Racket code base.}
@h1{What kind of server?}
@p{A 64-bit Linux 2.6.28-15 server running Ubuntu 9.04
with @,(number->string (number-of-cpus)) cores.}
@h1{How is the build run?}
On Fri, Oct 1, 2010 at 2:28 PM, Jay McCarthy <jay.mccarthy at gmail.com> wrote:
> When you say "use Scribble" I presume you mean generate HTML like
> Scribble does? If so, you're right that it is designed for batch
> processing. I'm not sure it would be very useful to have it
> dynamically served because it is designed for a consistent, designed,
> structure.
>
> If what you mean is "use the @ syntax", then it's very easy. Just do
>
> #lang at-exp racket
>
> and you can use the @ syntax anywhere.
>
> I use it in the DrDr FAQ page:
>
> http://github.com/plt/racket/blob/master/collects/meta/drdr/render.ss
> [around line 470]
>
> Jay
>
> On Fri, Oct 1, 2010 at 7:07 AM, Stephen De Gabrielle
> <stephen.degabrielle at acm.org> wrote:
> > I was just wondering if it was possible to use scribble as a markup
> > language in web apps like the continue demo?
> >
> > I took a quick look, but the scribble lib seems to be focussed on
> > batch processing files, or being used as a language. Am I missing
> > something?
> >
> > (I was thinking of doing a scribble wiki in the style of the continue
> demo.)
> >
> > Cheers,
> > Stephen
> >
> >
> > --
> >
> > --
> > Stephen De Gabrielle
> > stephen.degabrielle at acm.org
> > Telephone +44 (0)20 85670911
> > Mobile +44 (0)79 85189045
> > http://www.degabrielle.name/stephen
> > _________________________________________________
> > For list-related administrative tasks:
> > http://lists.racket-lang.org/listinfo/users
> >
>
>
>
> --
> Jay McCarthy <jay at cs.byu.edu>
> Assistant Professor / Brigham Young University
> http://teammccarthy.org/jay
>
> "The glory of God is Intelligence" - D&C 93
>
--
--
Stephen De Gabrielle
stephen.degabrielle at acm.org
Telephone +44 (0)20 85670911
Mobile +44 (0)79 85189045
http://www.degabrielle.name/stephen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20101001/20652ff7/attachment.html>