bkyk8rc3zvpnsf5inmcqq4n3k98cv6hj-my-site-hyper-literate-git.test.suzanne.soy-0.0.1

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 80b8bbd686670fc068cf6ff0a24338b64a7bb18c
parent 8876f0078770d6ef7c4d34c1061cd5a6498c5c42
Author: Robby Findler <robby@racket-lang.org>
Date:   Sun, 21 Apr 2013 20:46:15 -0500

add an example with html tags and attributes

original commit: 5db7715b279991ae2e9581fc824fb9424b9b2c47

Diffstat:
Mcollects/scribblings/scribble/config.scrbl | 32++++++++++++++++++++++++++++----
1 file changed, 28 insertions(+), 4 deletions(-)

diff --git a/collects/scribblings/scribble/config.scrbl b/collects/scribblings/scribble/config.scrbl @@ -92,10 +92,10 @@ For example, a Scribble document scribble/html-properties scribble/latex-properties) - (define inbox-style - (make-style "InBox" - (list (make-css-addition "inbox.css") - (make-tex-addition "inbox.tex")))) + @(define inbox-style + (make-style "InBox" + (list (make-css-addition "inbox.css") + (make-tex-addition "inbox.tex")))) @title{Quantum Pet} @@ -125,6 +125,30 @@ generates Do not open: @elem[#:style "InBox"]{Cat} } +@index["HTML Tags and Attributes"]{ +Scribble documents can also embed specific html tags and +attributes.} For example, this Scribble document: +@codeblock|{ +#lang scribble/base + +@(require scribble/core + scribble/html-properties) + +@(define external-image + (elem + #:style + (style #f + (list (alt-tag "img") + (attributes + '((src . "http://www.racket-lang.org/icon.png"))))))) + +@external-image +}| + +renders as the the Racket logo at the url +@url{http://www.racket-lang.org/logo.png} +when producing html. + @; ------------------------------------------------------------ @section[#:tag "config-style"]{Configuring Output}