From 971f0f4277d4dc0dd115bb63c58b4e5cef5a5d81 Mon Sep 17 00:00:00 2001 From: Jonathan Boiser Date: Fri, 13 May 2016 08:48:07 -0500 Subject: [PATCH 1/2] Fix typo browesr -> browser Just saw this reading through the manual. --- pollen/scribblings/quick.scrbl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pollen/scribblings/quick.scrbl b/pollen/scribblings/quick.scrbl index 5c4a2b2..70b32c3 100644 --- a/pollen/scribblings/quick.scrbl +++ b/pollen/scribblings/quick.scrbl @@ -204,7 +204,7 @@ Now you can insert the variable into the HTML, this time using the special ◊ c }] -In your web browesr, reload @link["http://localhost:8080/margin.html"]{@filepath{margin.html}}. You'll see that the size of the margin has changed (because of the change to the @code{style} attribute) and so has the text of the HTML. If you like, try editing @code{my-inset} with different values and reloading the page. You can also try using @racket[define] to create another variable (for instance, to change the color of the box border). +In your web browser, reload @link["http://localhost:8080/margin.html"]{@filepath{margin.html}}. You'll see that the size of the margin has changed (because of the change to the @code{style} attribute) and so has the text of the HTML. If you like, try editing @code{my-inset} with different values and reloading the page. You can also try using @racket[define] to create another variable (for instance, to change the color of the box border). Still, this is the tiniest tip of the iceberg. The Pollen preprocessor gives you access to everything in the Racket programming language — including string manipulation, math functions, and so on. @@ -394,4 +394,4 @@ Now you've seen the key features of Pollen. What do you think? But don't take my word for it. The rest of this documentation will show you the useful and sophisticated things you can do with Pollen. If there's another tool that suits you better, great. Keep in mind that I didn't make Pollen because I'm a programmer. I'm a writer who wants to make electronic books that are better than the ones we have now. And for that, I needed a better tool. -Now I have it. \ No newline at end of file +Now I have it. From 0c9338be81376605bfc9913ac0b6d3fbe7fbe855 Mon Sep 17 00:00:00 2001 From: Jonathan Boiser Date: Fri, 13 May 2016 09:00:42 -0500 Subject: [PATCH 2/2] Fix server link to uptown.html --- pollen/scribblings/quick.scrbl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pollen/scribblings/quick.scrbl b/pollen/scribblings/quick.scrbl index 70b32c3..933564b 100644 --- a/pollen/scribblings/quick.scrbl +++ b/pollen/scribblings/quick.scrbl @@ -305,7 +305,7 @@ Pollen markup You @bold{wanted} it — you @italic{got} it. https://google.com/ That's not right. What happened? -We marked up the source using a combination of standard HTML tags (@code{strong}, @code{em}) and nonstandard ones (@code{headline}, @code{items}, @code{item}, @code{link}). This is valid Pollen markup. (In fact, if you look at @link["http://localhost:8080/out/markup.html"]{the generated source}, you'll see that they didn't disappear.) But since we're targeting HTML, we need to convert our custom tags into valid HTML tags. +We marked up the source using a combination of standard HTML tags (@code{strong}, @code{em}) and nonstandard ones (@code{headline}, @code{items}, @code{item}, @code{link}). This is valid Pollen markup. (In fact, if you look at @link["http://localhost:8080/out/uptown.html"]{the generated source}, you'll see that they didn't disappear.) But since we're targeting HTML, we need to convert our custom tags into valid HTML tags. For that, we'll make a special file called @filepath{pollen.rkt}. This is a file in the standard Racket language that provides helper functions to decode the source. The definitions won't make sense yet. But this is the quick tour, so all you need to do is copy, paste, and save: