racket/collects/tests/scribble/docs/cond.scrbl
Matthew Flatt df2a875ff4 Scribble: simplify content that is conditioned on the render mode
including a new `scriblib/render-cond' library
2011-04-04 10:45:02 -06:00

20 lines
326 B
Racket

#lang scribble/base
@(require scriblib/render-cond)
@(cond-element
[text "Text!"]
[html "HTML!"]
[latex "Latex!"])
@(cond-element
[(or text html) "Text or HTML!"]
[else "Latex!"])
@(cond-element
[(and text html) "Text and HTML?!"]
[else "Other!"])
@(cond-element
[(not text) "Not Text!"]
[else "Text!"])