[racket] Injecting HTML into a scribble document?

From: Matthias Felleisen (matthias at ccs.neu.edu)
Date: Thu Jun 23 13:13:36 EDT 2011

Oops, I forgot the css file, but you can imagine that you can put all kinds of things there: 

.inbox {
    padding: 0.2em;
    border: 1px solid #000000;
  }



On Jun 23, 2011, at 1:08 PM, Matthias Felleisen wrote:

> 
> Would this help: 
> 
> #lang scribble/manual
> 
> @(require scribble/core scribble/html-properties)
> 
> @(define css-style
>   (make-style "a bunch of things"
>               (list
>                (make-css-addition "shared.css"))))
> 
> @title[#:tag "intro" #:style css-style]{Example}
> 
> @(define (exact . items)
>   (make-element (make-style "inbox" '()) items))
> 
> @exact{ stuff }
> 
> -- Matthias
> 
> 
> 
> On Jun 23, 2011, at 11:56 AM, Danny Yoo wrote:
> 
>> I'd like to be able to inject some HTML fragments into a Scribble
>> document, so that when the Scribble documentation renders to html,
>> those fragments are carried along.
>> 
>> * For example, if I have a Google Analytics snippet that needs to be
>> injected within the <head/> of the document, I'd like to have that
>> done at the documentation generation time, rather than as a separate
>> step.
>> 
>> * As another hypothetical scenario, I might want to add an IFRAME to
>> another html site, embedded within the flow of my document.
>> 
>> 
>> Both of these are very specific to HTML rendering, so they probably
>> wouldn't be relevant if one is Scribbling to the other formats (PDF,
>> text)
>> 
>> 
>> Do such mechanisms already exist in Scribble?  If so, what should I be
>> looking at?
>> _________________________________________________
>> For list-related administrative tasks:
>> http://lists.racket-lang.org/listinfo/users
> 
> _________________________________________________
>  For list-related administrative tasks:
>  http://lists.racket-lang.org/listinfo/users




Posted on the users mailing list.