From dc935fc6adb8440aeec6c7f11401e87a654e7a10 Mon Sep 17 00:00:00 2001 From: Glenn Lewis Date: Thu, 8 Sep 2016 16:11:44 -0700 Subject: [PATCH] Fix minor typo in Pollen docs Also, clarify one example by showing the resulting output from Pollen. Change-Id: I4ee1794091ed5f0b7170450554f50e6135d6a56f --- pollen/scribblings/programming-pollen.scrbl | 4 ++++ pollen/scribblings/tutorial-third.scrbl | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/pollen/scribblings/programming-pollen.scrbl b/pollen/scribblings/programming-pollen.scrbl index 9be6165..9f3205d 100644 --- a/pollen/scribblings/programming-pollen.scrbl +++ b/pollen/scribblings/programming-pollen.scrbl @@ -83,6 +83,10 @@ This refers to the function as a value (not usually what you want): I want to attend ◊em{RacketCon ◊strong{this} year}.}] +Yielding: + +@repl-output{'(root "I want to attend " (em "RacketCon " "BAP" " year") ".")} + @subsection{Multiple input values & rest arguments} Sometimes a tag will have only one word or string that becomes its input. More likely, however, it will have multiple values (this is inevitable with nested tags, because the results aren't concatenated). For instance, if we attach our function to @racket[em] rather than @racket[strong]: @fileblock["article.html.pm" @codeblock{ diff --git a/pollen/scribblings/tutorial-third.scrbl b/pollen/scribblings/tutorial-third.scrbl index d5c076f..c05d738 100644 --- a/pollen/scribblings/tutorial-third.scrbl +++ b/pollen/scribblings/tutorial-third.scrbl @@ -522,7 +522,7 @@ This code would not, however, produce an error if it were being run as a Pollen As you get more comfortable attaching behavior to tags using tag functions, you'll likely want to create some functions that can be shared between multiple source files. The @filepath{pollen.rkt} file is a special file that is automatically imported by Pollen source files in the same directory (including subdirectories). So every function and value provided by @filepath{pollen.rkt} can be used in these Pollen files. -First, using @filepath{pollen.rkt} isn't mandatory. Within a Pollen source file, you can always import functions and values with @racket[require] (as seen in the previous section). @filepath{pollen.rkt} just makes it easier to propagate a set of common definitions to every every Pollen source file in your project. +First, using @filepath{pollen.rkt} isn't mandatory. Within a Pollen source file, you can always import functions and values with @racket[require] (as seen in the previous section). @filepath{pollen.rkt} just makes it easier to propagate a set of common definitions to every Pollen source file in your project. Second, notice from the @filepath{.rkt} suffix that @filepath{pollen.rkt} is a source file containing Racket code, not Pollen code. This is the default because while Pollen's notation is more convenient for text-based source files, Racket's notation is more convenient when you're just dealing with code. -- 2.25.1