dev-stylish-5
Matthew Butterick 6 years ago
parent c96c339943
commit 48dd08fd0d

@ -1 +1 @@
1534789186 1534800722

@ -74,9 +74,9 @@ After a moment, a new file will appear called @filepath{hello.txt}. Let's see wh
@terminal{ @terminal{
> cat hello.txt > cat hello.txt
Goodbye Stranger Era Vulgaris
Breakfast in America Songs for the Deaf
Take the Long Way Home Like Clockwork
} }
@margin-note{If @exec{raco} doesn't work, it's probably because the @envvar{PATH} wasn't set up correctly during @secref["Installation"].} @margin-note{If @exec{raco} doesn't work, it's probably because the @envvar{PATH} wasn't set up correctly during @secref["Installation"].}
@ -127,9 +127,9 @@ Open a web browser and point it at the project dashboard, which by default is @l
Among them will be @filepath{hello.txt}, with a greyed-out @filepath{.pp} extension. Click on it, and you'll be taken to @link-tt{http://localhost:8080/hello.txt}, where you'll see: Among them will be @filepath{hello.txt}, with a greyed-out @filepath{.pp} extension. Click on it, and you'll be taken to @link-tt{http://localhost:8080/hello.txt}, where you'll see:
@terminal{ @terminal{
Goodbye Stranger Era Vulgaris
Breakfast in America Songs for the Deaf
Take the Long Way Home Like Clockwork
} }
That's the boring part. Here's the good part. Leave the project server running. Open your source file again in DrRacket and edit it as follows: That's the boring part. Here's the good part. Leave the project server running. Open your source file again in DrRacket and edit it as follows:
@ -137,17 +137,17 @@ That's the boring part. Here's the good part. Leave the project server running.
@fileblock["hello.txt.pp" @fileblock["hello.txt.pp"
@codeblock{ @codeblock{
#lang pollen #lang pollen
Mean Street Grand Illusion
Panama Pieces of Eight
Hear About It Later Paradise Theatre
}] }]
Go back to your web browser and reload @link-tt{http://localhost:8080/hello.txt}. Now you'll see this: Go back to your web browser and reload @link-tt{http://localhost:8080/hello.txt}. Now you'll see this:
@terminal{ @terminal{
Mean Street Grand Illusion
Panama Pieces of Eight
Hear About It Later} Paradise Theatre}
Notice what happened — the Pollen project server dynamically regenerated the output file (@filepath{hello.txt}) from the source file (@filepath{hello.txt.pp}) after you edited the source. If you like, try making some more changes to @filepath{hello.txt.pp}, and reloading the browser to see the updates in @filepath{hello.txt}. The project server will regenerate the file whenever it changes. Notice what happened — the Pollen project server dynamically regenerated the output file (@filepath{hello.txt}) from the source file (@filepath{hello.txt.pp}) after you edited the source. If you like, try making some more changes to @filepath{hello.txt.pp}, and reloading the browser to see the updates in @filepath{hello.txt}. The project server will regenerate the file whenever it changes.

Loading…
Cancel
Save