
Ie, the difference between using it as a language and as a module is now the same in both. Also, improve `scribble/html' (and `scribble/html/htmllang') by reproviding most of the corresponding text modules. Change `meta/web' accordingly, and improve code by making a new langugae (`#lang meta/web'). This language is similar to `scribble/html' except that it uses the plain scribble reader (not the `-inside' one), it doesn't use the customized module-begin feature (that uses `output-xml'), and it adds all the relevant bits of `meta/web/common'. (Also, "meta/web/common.rkt" is gone, since it's used only as a language now.) This commit has lots of details and binding games, so it's tricky, and potentially caused some problems. (Took me a while to track many breakages, so I won't be surprised if there are more.)
18 lines
558 B
Racket
18 lines
558 B
Racket
#lang meta/web
|
|
|
|
(define-context "stubs/planet")
|
|
|
|
(provide planet)
|
|
(define planet
|
|
@page[#:file "" #:link-title "PLaneT" #:window-title "{{{TITLE}}}"
|
|
#:extra-headers "{{{HEAD}}}"]{
|
|
@; This is a stub page to get the header for planet
|
|
{{{BODY}}}})
|
|
|
|
(define readme
|
|
@plain[#:file "README"]{
|
|
This directory contains files that are placed here automatically by
|
|
the web build process. The HTML file contains holes to be filled in
|
|
for the title, header, and body, and the other files are resources
|
|
that are used by the template.})
|