Giter Site home page Giter Site logo

mbutterick / pollen Goto Github PK

View Code? Open in Web Editor NEW
1.2K 54.0 64.0 7.56 MB

book-publishing system [mirror of main repo at https://git.matthewbutterick.com/mbutterick/pollen]

Home Page: https://git.matthewbutterick.com/mbutterick/pollen

License: MIT License

Racket 98.79% CSS 0.49% Perl 0.31% Puppet 0.07% HTML 0.09% OpenEdge ABL 0.08% Pascal 0.06% Raku 0.02% TeX 0.10%
racket

pollen's Introduction

Pollen: the book is a program Contributor Covenant

A book-publishing system written in Racket. This is the software I use to publish & maintain my web-based books Beautiful Racket, Practical Typography, and Typography for Lawyers.

If you think documents should be programmable, you’ll love it.
If not, you can move along.

Pollen gives you access to a full programming language (Racket) with a text-based syntax that makes it easy to embed code within your documents.

Using Racket 6.3+, install from the command line:

raco pkg install pollen

And update like so:

raco pkg update --update-deps pollen

Official forum: https://forums.matthewbutterick.com/c/pollen/

License

MIT

Project status

Actively developed, though the pace has slowed now that Pollen is arguably feature complete and stable. I use it almost every day so it's not going anywhere. But I have no plans to substantially enlarge or extend it.

pollen's People

Contributors

alexknauth avatar basus avatar bennn avatar bnbeckwith avatar bogdanp avatar gmlewis avatar j3parker avatar jonboiser avatar leafac avatar leifandersen avatar matiasz avatar mbutterick avatar newelldev avatar odanoburu avatar otherjoel avatar rrthomas avatar samth avatar singletoned avatar sorawee avatar timcondit avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pollen's Issues

Allow for attributes without values

It seems like there are some HTML tags that accept attributes without values, for example, the script async attribute. It would be great to able to represent these in the attribute list as well, especially since things like embedding tweets make use of them.

LaTeX output (or direct to PDF)?

Let me quickly say that I love this project, and I think you've done everything right to build a successor to (La)TeX. With that in mind, how feasible would it be to generate either LaTeX output, or have a built in PDF output mechanism? I think it's important to be able to publish not just to HTML, but to ePub (easy if it can do HTML), and PDF (and ideally, any arbitrary format if someone is motivated to write the rendering code).

I'm planning to migrate the book that I'm writing at the moment over to pollen to give it a good test drive, but my understanding so far is that behind-the-scenes you do something roughly like:

  1. Parse markdown, or 'pollen' mark-up (using the lozenge, and user-definable commands).
  2. This internally creates a tree-like object describing the document, which is very close (identical?) to what HTML produces.
  3. Render this to HTML.

Would it be easy to swap out this last step with rendering to LaTeX? Or is the tree that is built up between steps 1 and 2 too tied into targeting HTML to be able to capture the semantic information that would be needed to target a different output format?

Either way, I'm going to give pollen a try since I've found Markdown way too restricted and lacking the macros possibilities that I love from LaTeX. Great job!

Missing dependency

There miss a "htdp" dependency in your info.rkt to make it works from a fresh minimal racket install.

problem in regenerate

If a page is regenerated directly by passing it to pollen-command, and has a syntax error, it gets swallowed by this code (which redirects the error port):

(define file-was-reloaded-port (open-output-string)) (parameterize ([current-directory source-dir] [current-error-port file-was-reloaded-port]) ; by default, rerequire reports reloads to error port. ; so capture this message to find out if anything was reloaded. (dynamic-rerequire source-path))

2htpd dependency not found

Pollen installation fails because a dependency is not found.

$ raco pkg install pollen
Resolving "pollen" via http://download.racket-lang.org/releases/6.0.1/catalog/
Resolving "pollen" via http://pkgs.racket-lang.org
Using cached14089292021408929202455 for https://github.com/mbutterick/pollen/tarball/a834a99861b82581d188f1f0c51ffe63f14ace1a
The following uninstalled packages are listed as dependencies of pollen:
   base
   txexpr
   sugar
   markdown
   2htdp
Would you like to install these dependencies? [Y/n/a/?] 
Resolving "base" via http://download.racket-lang.org/releases/6.0.1/catalog/
Using cached14089177191408917719518 for http://download.racket-lang.org/releases/6.0.1/pkgs/base.zip
Resolving "txexpr" via http://download.racket-lang.org/releases/6.0.1/catalog/
Resolving "txexpr" via http://pkgs.racket-lang.org
Using cached14089177281408917728344 for https://github.com/mbutterick/txexpr/tarball/724a7f5ee011d137643aa2b7a423e6fd2471a347
Resolving "sugar" via http://download.racket-lang.org/releases/6.0.1/catalog/
Resolving "sugar" via http://pkgs.racket-lang.org
Using cached14089177361408917736154 for https://github.com/mbutterick/sugar/tarball/aa57e3e4f2621e7fa6ec4ce7cf3733696be158a4
Resolving "markdown" via http://download.racket-lang.org/releases/6.0.1/catalog/
Resolving "markdown" via http://pkgs.racket-lang.org
Using cached14089177421408917742106 for https://github.com/greghendershott/markdown/tarball/9266c25ca333ef2f45c09ee30385de0c314baa61
Resolving "2htdp" via http://download.racket-lang.org/releases/6.0.1/catalog/
Resolving "2htdp" via http://pkgs.racket-lang.org
Resolving "2htdp" via http://planet-compats.racket-lang.org
raco pkg install: cannot find package on catalogs
  package: 2htdp

Blank or empty X-expression?

I'm following the decoding example from the third Pollen tutorial to define handlers on the root tag. In particular, I'm trying to automatically insert paragraph tags, but not insert <br/> tags for single-line breaks. In order to do that, I'm using the following code, trying to reuse the functions in decode.rkt:

◊(define (mk-para elements)
   (detect-paragraphs elements
                      #:tag 'p
                      #:linebreak-proc (lambda (x) (detect-linebreaks x #:insert '()))))

◊(define (root . elements)
   (make-txexpr 'root null
                (decode-elements elements
                                 #:txexpr-elements-proc mk-para
                                 #:string-proc (compose smart-quotes smart-dashes))))

The main difference from the code in decode.rkt is that I'm trying to use '() as the tag to insert in place of a line-break instead of '(br). However, this causes a contract violation because '() is not a valid X-expression. Perhaps there should be some notion of a blank or empty X-expression that does not translated to anything?

Asciidoc(tor) support

Hello,

I'm reading 3rd part of tutorial, but wonder if you have any experience with Asciidoc(tor) markup which has ability to convert to (industry-standard) DocBook with all XML-related benefits.

In my case of intended usage of AsciiDoc(tor) I'm not thinking about DocBook toolchain, but wonder if you explored such possibility?

Personally, I'm more interested to use Polen/Scribble markup, but considering there is support in Polen for Markdown, Asciidoc(tor) seems interesting option...

Directory-related error processing .pm files

I'm getting an error (running pollen on OS X Mavericks) that seems to depend on the directory in which I place my pollen project files.

Here is the error text displayed in the console by raco pollen:

render: foo.html.pm
Servlet (@ /foo.html) exception:
include-at/relative-to/reader: can't open include file (open-input-file: cannot open input file
  path: /tmp/test/../../Users/jordan/Library/Racket/6.1/pkgs/pollen/server-extras/fallback.html
  system error: No such file or directory; errno=2)
  at: #<path:/tmp/test/../../Users/jordan/Library/Racket/6.1/pkgs/pollen/server-extras/fallback.html>
  in: (include-at/relative-to/reader (file "../../Users/jordan/Library/Racket/6.1/pkgs/pollen/server-extras/fallback.html") (file "../../Users/jordan/Library/Racket/6.1/pkgs/pollen/server-extras/fallback.html") (file "../../Users/jordan/Library/Racket/6.1/pkgs/pollen/server-extras/fallback.html") (let ((xs #f) (command-char-v #\◊)) (λ (src inp) (unless xs (set! xs (if command-char-v (scribble:read-syntax-inside #:command-char command-char-v src inp) (scribble:read-syntax-inside src inp))) (when (syntax? xs) (set! xs (or (syntax->list xs) (list xs))))) (if (null? xs) eof (let ((x (car xs))) (set! xs (cdr xs)) (if (and (null? xs) (let ((p (syntax-property x (quote scribble)))) (and (pair? p) (eq? (car p) (quote newline))))) eof x))))))

  context...:
   /usr/local/racket/collects/racket/private/more-scheme.rkt:162:2: select-handler/no-breaks
   /usr/local/racket/collects/racket/include.rkt:13:0
   /usr/local/racket/share/pkgs/scribble-text-lib/scribble/text/syntax-utils.rkt:72:0
   /usr/local/racket/share/pkgs/scribble-text-lib/scribble/text/syntax-utils.rkt:121:2: loop
   /usr/local/racket/share/pkgs/scribble-text-lib/scribble/text/syntax-utils.rkt:148:0
   core219
   render-to-file
   unpack56
   /Users/jordan/Library/Racket/6.1/pkgs/pollen/server-routes.rkt:223:0: route-default
   /usr/local/racket/share/pkgs/web-server-lib/web-server/dispatchers/dispatch-servlets.rkt:58:2
   /usr/local/racket/share/pkgs/web-server-lib/web-server/private/dispatch-server-unit.rkt:112:8

Procedure that produced the bug for me:

  1. Create a minimal foo.txt.pm or foo.html.pm file in /tmp/test/
  2. Run raco pollen start in /tmp/test/
  3. Load the ptree page and click on foo.html.

This error does not occur if I follow the identical procedure in ~/tmp/ instead. AFAICT this seems like a problem in how OS X handles references to parent dir references; I'm basing that on this experiment at the shell:

$ ls /tmp/test/../..
etc      tftpboot tmp      var
$ ls /tmp/test/../../..
Applications     Users            etc              sbin
Library          Volumes          home             tmp
Network          bin              mach_kernel      usr
System           cores            net              var
User Information dev              private

The latter directory listing shows the actual contents of /; I'm not sure where it's getting the former listing. So, perhaps this is an OS X (or Racket-on-OS X) bug, but maybe it can be worked around in Racket?

Problem when downloading with raco

When I execute

raco pkg install pollen
it returns
.raco-wrapped pkg install: cannot infer package source type
source: git://github.com/mbutterick/pollen

Should on http://pkgs.racket-lang.org for pollen git://github.com/mbutterick/pollen be replaced with github://github.com/mbutterick/pollen/master ?

source code for practicaltypography.com?

I’ve been asked about this by @chipotle and others. There aren’t any state secrets in the source code for practicaltypography.com. But because that source has evolved in tandem with the Pollen system — and hasn't been polished to the same degree — it has some leftover cruft and idiosyncratic maneuvers that aren’t especially educational.

For now, my focus is finishing a full draft of the docs (especially the tutorials, which are foundational). Then I'll go back and add real-world examples, including practicaltypography.com.

In the meantime, if anyone has questions about how such-and-such was accomplished, post your question here & I’ll be happy to explain.

Multiple arguments to tag functions?

I've been playing around with ways to implement hyperlinks using tag functions. I think the most generic way would be something like ◊a['href:"url"]{text}, but I'd like to make some custom tags for things like internal links, links to particular domains, etc. Ideally I'd want to write something like ◊internal[url]{text} that clearly separates out the URL from the link text. Is there a simple way to go about doing this? I can't tell what the rules are for splitting the tag contents into the list that gets passed to the tag function.

Installation fails due to SSL error.

I was trying to install pollen and faced an error when the process tries to download the pollen from github over SSL.

I didn’t faced the same issue before when I was install in in another linux box. This seems to be a new issue on the installation.

$ /usr/racket/bin/raco pkg install pollen
Resolving "pollen" via http://download.racket-lang.org/releases/6.1.1/catalog/
Resolving "pollen" via http://pkgs.racket-lang.org
Downloading https://github.com/mbutterick/pollen/tarball/bb8805b16496ddc4d734f21d0864b0a0f0d0cdc3
ssl-connect: requested protocol not supported
  requested: 'sslv2-or-v3
  context...:
   /usr/racket/collects/openssl/mzssl.rkt:471:18
   /usr/racket/collects/racket/private/more-scheme.rkt:264:2: call-with-exception-handler
   /usr/racket/collects/net/http-client.rkt:220:0: http-conn-open46
   /usr/racket/collects/net/url.rkt:130:0: http://getpost-impure-port
   /usr/racket/collects/net/url.rkt:264:2: redirection-loop
   /usr/racket/collects/pkg/util.rkt:36:0: call/input-url+2007
   /usr/racket/collects/file/cache.rkt:63:2: fetch-and-continue
   /usr/racket/collects/pkg/lib.rkt:1171:14
   /usr/racket/collects/pkg/lib.rkt:1073:0: stage-package/info96
   /usr/racket/collects/pkg/lib.rkt:1073:0: stage-package/info96
   /usr/racket/collects/pkg/lib.rkt:1979:4: for-loop
   /usr/racket/collects/pkg/lib.rkt:1533:0: install-packages158
   /usr/racket/collects/racket/file.rkt:363:8
   /usr/racket/collects/racket/file.rkt:352:0: call-with-file-lock44
   /usr/racket/collects/pkg/main.rkt:169:14
   (submod /usr/racket/collects/pkg/main.rkt main): [running body]...

render and clone have no effect

I have a small example with a few .pm and .pmd files. I can see the rendered files in a browser correctly after doing raco pollen start, but clone and render seem to have no effect. I don't see any errors in the terminal either.

default view in browser uses Western instead of Unicode encoding

Hello,

doing my 1st steps with Pollen, but testing with the text having Croatian native characters (č,ć,đ,š,ž) and although my source file is using UTF-8:

$ file haribol.txt.pp 
haribol.txt.pp: UTF-8 Unicode text

stil when I render it in browser (Firefox) it is rendered using Western encoding and the text is not correct until I select Unicode encoding?

Strangely enough, rendering in the terminal generates correct file.

What's the matter?

Source files for documentation?

Would it be possible to include the source files (*.pp, *.pm, directory-require.rkt) for the documentation?

This will result in a smoother learning curve because the Pollen documentation seems to use more functionality than is covered in the tutorials at this date. For example the (seemingly?) automatic numbering of chapters and paragraphs.

How to specify metas?

In the File Formats doc page, I see:

Beyond that, the only 'metas are the ones that are specified within the source file (see the source formats below for more detail on how to specify metas).

But I see no more information below that…

Make Pollen compatible with new `module-suffixes` facility

I believe this is a Racket issue rather than a Pollen issue, but perhaps I'm missing something, or there is a config/pref that could be added to the Pollen guide.

This instruction, in quick.scrbl...

Save this file with the name hello.txt.pp in any convenient directory. 

... appears to be broken using a clean install of the 64-bit Mac OS X Racket distribution (racket-6.1.1-x86_64-macosx.dmg).

It appears this version of DrRacket is unable to save a file without appending the .rkt extension. In the Save dialog (or the Save Definitions As... dialog, or the Save Other > Save Definitions As Text... dialog) I can delete the .rkt extension in the dialog but it saves with the .rkt extension applied anyway.

If, in the Save dialog, I remove the .rkt extension and the file exists it will ask if I want to overwrite it, which I do, and it thinks it does, but the file as shown by the Finder actually has the .rkt extension (correctly overwritten).

The summary here is that a browser pointed at the project server cannot just reload the page, because that page hasn't changed. The "hello.txt.pp.rkt" page has changed.

This only worked initially because when I first started the tutorial I manually changed the filename in the Finder, thinking, "Oh, I forgot to delete the default extension in the Save dialog, I'll just change the name." So then there was a page at http://localhost:8080/hello.txt but it never changes when saving via DrRacket...

If I had a solution I'd make a pull request against the docs, but I'm currently stumped. Pointers? Take it to Racket?

`raco pollen start` uses incorrect template in nested directory

I have a pollen project set up which has a couple of directories under the main one. Each of the nested directories has it's own template.html so that I can generate different types of pages. I've been running raco pollen start in the top-level directory for development work. However, it seems like for generating pages in the nested directories, it's still using the top-level template.html file, rather the one corresponding to each directory. If I run raco pollen render inside each directory, it uses the correct one.

Problem with syntax highlighter replacing &s

Hi,

I was trying the example of syntax highlight provided in the source code comments:

◊(require pollen/pygments)
◊(make-highlight-css)


◊highlight['python]{ 
for x in range(10):
    print x
if zero is False:
    print "Hello world"}

but I get this exception:

The application raised an exception with the message:
regexp-replace*: contract violation
  expected: (or/c string? bytes?)
  given: '()
Stack trace:
core83 at:
  line 362, column 11, in file /Applications/Racket v6.1.1/collects/racket/private/string.rkt
decode-ampersands-in-attributes at:
  line 43, column 0, in file /[...]/Racket/6.1.1/pkgs/pollen/highlight.rkt
read-html-as-xexprs at:
  line 54, column 0, in file /[...]/Racket/6.1.1/pkgs/pollen/highlight.rkt
highlight at:
  line 111, column 0, in file /[...]/Racket/6.1.1/pkgs/pollen/highlight.rkt
[running body] at:
  line #f, column #f, in file (submod /[...]/erlang_doc/erlang_tut.html.pm pollen-lang-module inner)
[traversing imports] at:
  line #f, column #f, in file (submod /[...]/erlang_doc/erlang_tut.html.pm pollen-lang-module)
[traversing imports] at:

I have tried to fix it, but, frankly, my racket skills are not enough. I wonder if the format of the data provided to decode-ampersands-in-attributes has changed.

The describe is not available through planet

Hi,

My install log is below. It fails when describe is to be downloaded.
Is describe necessary, or was it just used to debug something?

/Jens Axel

mba-5:metapict soegaard$ ~/racket-jan-30/racket/racket/bin/raco pkg install pollen
Resolving "pollen" via http://pkgs.racket-lang.org
Downloading https://github.com/mbutterick/pollen/tarball/acb0a34a551ec94ae86cddd8d884b404c957df07
The following uninstalled packages are listed as dependencies of pollen:
txexpr
sugar
markdown
Would you like to install these dependencies? [Y/n/a/?] Y
Resolving "txexpr" via http://pkgs.racket-lang.org
Downloading https://github.com/mbutterick/txexpr/tarball/1146b9d267863a3232c209f6c21c83016a97a6a5
Resolving "sugar" via http://pkgs.racket-lang.org
Downloading https://github.com/mbutterick/sugar/tarball/ebbdd403f5b1068e569d5d9f6a4f35e26bad41cc
Resolving "markdown" via http://pkgs.racket-lang.org
Downloading https://github.com/greghendershott/markdown/tarball/1519dfe6e1d097a8397470688139538f589bfbed
The following uninstalled packages are listed as dependencies of sugar:
describe
Would you like to install these dependencies? [Y/n/a/?] Y
Resolving "describe" via http://pkgs.racket-lang.org
Resolving "describe" via http://planet-compats.racket-lang.org
raco pkg install: cannot find package on catalogs
package: describe

"collection not found" problem installing through raco

I get the following when attempting raco pkg install pollen:

raco setup: 2 making: <pkgs>/pollen
/Users/mattly/Library/Racket/6.0.1/pkgs/pollen/server-routes.rkt:3:9: collection not found
  for module path: web-server/http/xexpr
  collection: "web-server/http"
  in collection directories:
   /Users/mattly/Library/Racket/6.0.1/collects
   /usr/local/Cellar/plt-racket/6.0.1/share/racket/collects
   ... [44 additional linked and package directories]
  context...:
   show-collection-err
   standard-module-name-resolver
   /usr/local/Cellar/plt-racket/6.0.1/share/racket/collects/compiler/cm.rkt:345:0: compile-zo*
   /usr/local/Cellar/plt-racket/6.0.1/share/racket/collects/compiler/cm.rkt:552:26
   /usr/local/Cellar/plt-racket/6.0.1/share/racket/collects/compiler/cm.rkt:545:42
   /usr/local/Cellar/plt-racket/6.0.1/share/racket/collects/compiler/cm.rkt:510:0: maybe-compile-zo
   /usr/local/Cellar/plt-racket/6.0.1/share/racket/collects/compiler/cm.rkt:621:2: do-check
   /usr/local/Cellar/plt-racket/6.0.1/share/racket/collects/compiler/cm.rkt:703:4
   /usr/local/Cellar/plt-racket/6.0.1/share/racket/collects/setup/parallel-do.rkt:420:20: loop

standard-module-name-resolver: collection not found
  for module path: (submod web-server/base reader)
  collection: "web-server"
  in collection directories:
   /Users/mattly/Library/Racket/6.0.1/collects
   /usr/local/Cellar/plt-racket/6.0.1/share/racket/collects
   ... [44 additional linked and package directories]
  context...:
   show-collection-err
   standard-module-name-resolver
   /usr/local/Cellar/plt-racket/6.0.1/share/racket/collects/compiler/cm.rkt:394:23
   /usr/local/Cellar/plt-racket/6.0.1/share/racket/collects/syntax/modcode.rkt:62:2: reader
   /usr/local/Cellar/plt-racket/6.0.1/share/racket/collects/syntax/modcode.rkt:264:5: compile-one
   /usr/local/Cellar/plt-racket/6.0.1/share/racket/collects/compiler/cm.rkt:345:0: compile-zo*
   /usr/local/Cellar/plt-racket/6.0.1/share/racket/collects/compiler/cm.rkt:552:26
   /usr/local/Cellar/plt-racket/6.0.1/share/racket/collects/compiler/cm.rkt:545:42
   /usr/local/Cellar/plt-racket/6.0.1/share/racket/collects/compiler/cm.rkt:510:0: maybe-compile-zo
   /usr/local/Cellar/plt-racket/6.0.1/share/racket/collects/compiler/cm.rkt:621:2: do-check
   /usr/local/Cellar/plt-racket/6.0.1/share/racket/collects/compiler/cm.rkt:703:4
   /usr/local/Cellar/plt-racket/6.0.1/share/racket/collects/setup/parallel-do.rkt:420:20: loop

and then, after that, almost every package installation fails:

raco setup: 3 making: <pkgs>/scribble-lib/scriblib
/Users/mattly/Library/Racket/6.0.1/pkgs/typed-racket-lib/typed-racket/base-env/base-env.rkt:9:2: cannot open module file
  module path: racket/unsafe/undefined
  path: /usr/local/Cellar/plt-racket/6.0.1/share/racket/collects/racket/unsafe/undefined.rkt
  system error: No such file or directory; errno=2

Any ideas? The racket mailing list and the #racket irc channel on freenode turned up nothing.

installation issues

Hi. I followed the instructions on your site to install Racket 6.1.1 and Pollen on OSX Yosemite. The result of the command 'raco pkg install pollen' was initially good, but it ended in a review of errors that are making the simple "Hello World" programs fail on my machine. Below, I am pasting the error report from the installation of Pollen.

raco setup: --- summary of errors ---
raco setup: error: during making for /sugar
raco setup: Library/Racket/6.1.1/pkgs/sugar/include.rkt:94:30: #%require: nested for-meta' not allowed raco setup: at: (for-meta 0 (rename racket/match match-lambda* match-lambda*)) raco setup: in: (#%require (for-meta 1 (just-meta 0 (for-meta 0 (rename racket/match match-lambda* match-lambda*))))) raco setup: context...: raco setup: /Applications/Racket v6.1.1/collects/racket/private/reqprov.rkt:1122:2 raco setup: raco setup: error: during making for <pkgs>/pollen raco setup: Library/Racket/6.1.1/pkgs/sugar/include.rkt:94:30: #%require: nestedfor-meta' not allowed
raco setup: at: (for-meta 0 (rename racket/match match-lambda* match-lambda_))
raco setup: in: (#%require (for-meta 1 (just-meta 0 (for-meta 0 (rename racket/match match-lambda_ match-lambda*)))))
raco setup: context...:
raco setup: /Applications/Racket v6.1.1/collects/racket/private/reqprov.rkt:1122:2

Windows: paths are not completely handled

I'm on Windows with latest racket and pollen.

What I did was cd to my working directory then ran this command:

"C:\Program Files\Racket\raco" pollen start

The index.ptree works, I can also access files in the folder that are not processed by pollen. However, when I click on spec.html.pm; I get this:

route-404: Can't find C:\Users\Adrien\Downloads\project\c\users\adrien\downloads\project\spec.html

Notice the stray path here.

Now cd'ing to racket directory and running it from here with a custom project path, I have basically the same error pattern but with racket path:

route-404: Can't find C:\Users\Adrien\Downloads\project\c\program files\racket\spec.html

Basically the same but with Racket's path.
For reference the command ran here was:

raco pollen start "C:\Users\Adrien\Downloads\project"

@mbutterick; Note that it's the first time I'm using Racket so I may be doing something wrong.

"unknown command pkg" from raco pollen render

I get the following error when I follow the example in the docs.
I can't figure out what went wrong.

mba-5:pollen-example soegaard$ cat hello-world.txt.pp

lang pollen

Goodbye Stranger
Breakfast in America
Take the Long Way Home

mba-5:pollen-example soegaard$ ~/racket-april-2014/racket/racket/bin/raco pollen render hello-world.txt.pp
unknown command pkg

html table with pollen

Hi.

I’m having a hard time with more complex tags like table, trow and tdata (let alone optional thead and/or tfoot). This is the code for my custom table function:

(define (table . rows)
    `(table ,(map (lambda (row)
        `(trow ,(map
            (lambda (data) `(tdata ,data))
            (string-split row ","))))
    rows)))

And this is the original code for the table:

◊table{
  1,un
  2,deux
  3,trois
  4,quartre
  5,cenq
  6,six
  7,sept
  8,huit
  9,neuff
  10,dix
  11,ounze
  12,dounze
}

The outcome looks like this:

decode-elements: contract violation
  expected: txexpr-elements?
  given: '((h1 "Vorlesung 1") "\n" "\n" (h2 "Vorstellung") "\n" "\n" "Je suis de Goslar. " (span ((class "translation")) "Ich bin/komme aus Goslar.") "\n" "Et toi? " (span ((class "translation")) "Und du?") "\n" "Je m'appelle Christian. " (span ((class "translation")) "Ich bin/heiße Christian.") "\n" "\n" (h2 "Das französische Alphabet") "\n" "\n" "Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Etiam porta sem malesuada magna mollis euismod. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Maecenas faucibus mollis interdum. Integer posuere erat a ante venenatis dapibus posuere velit aliquet." "\n" "\n" (div ((class "box")) (h2 "Die Zahlen bis 12") "\n" " " (table ((trow ((tdata "1") (tdata "un"))) (trow ((tdata "\n"))) (trow ((tdata "2") (tdata "deux"))) (trow ((tdata "\n"))) (trow ((tdata "3") (tdata "trois"))) (trow ((tdata "\n"))) (trow ((tdata "4") (tdata "quartre"))) (trow ((tdata "\n"))) (trow ((tdata "5") (tdata "cenq"))) (trow ((t...
  in: the 1st argument of
      (->*
       (txexpr-elements?)
       (#:block-txexpr-proc
        (-> block-txexpr? xexpr?)
        #:cdata-proc
        (-> cdata? xexpr?)
        #:exclude-tags
        (listof symbol?)
        #:inline-txexpr-proc
        (-> txexpr? xexpr?)
        #:string-proc
        (-> string? xexpr?)
        #:symbol-proc
        (-> symbol? xexpr?)
        #:txexpr-attrs-proc
        (-> txexpr-attrs? txexpr-attrs?)
        #:txexpr-elements-proc
        (-> txexpr-elements? txexpr-elements?)
        #:txexpr-tag-proc
        (-> txexpr-tag? txexpr-tag?)
        #:valid-char-proc
        (-> valid-char? xexpr?))
       txexpr-elements?)
  contract from: <pkgs>/pollen/decode.rkt
  blaming: /Users/cocoanaut/Copy/Uni/WS1415/Franzoesisch/Skript/directory-require.rkt
   (assuming the contract is correct)
  at: <pkgs>/pollen/decode.rkt:70.26
(table ((trow ((tdata "1") (tdata "un"))) (trow ((tdata "\n"))) (trow ((tdata "2") (tdata "deux"))) (trow ((tdata "\n"))) (trow ((tdata "3") (tdata "trois"))) (trow ((tdata "\n"))) (trow ((tdata "4") (tdata "quartre"))) (trow ((tdata "\n"))) (trow ((tdata "5") (tdata "cenq"))) (trow ((t...

Almost! But I can’t get it working without having the double quotes. Any thoughts on this?

Error in rendering typographic quotes

I've been playing a bit with Pollen, and have a fairly long novella already in Markdown. One of the paragraphs in the story (in a .html.pmd file) is as follows:

He lifted his brows and laughed. "I hadn't thought of it that way, but yes. I
see." Then he tilted his head, smiling curiously. "'Reductive.' You're very
well-spoken."

This is rendered by Pollen to the following:

<p>He lifted his brows and laughed. &ldquo;I hadn&rsquo;t thought of it that
way, but yes. I see.&rdquo; Then he tilted his head, smiling curiously.
"&lsquo;Reductive.&rsquo; You&rsquo;re very well-spoken."</p>

This may be a bug in the smart-quotes function.

(define line "He lifted his brows and laughed. \"I hadn't thought of it that
way, but yes. I see.\" Then he tilted his head, smiling curiously.
\"'Reductive.' You're very well-spoken.\"")
(display (smart-quotes line))
He lifted his brows and laughed. “I hadn’t thought of it that way, but yes. I
see.” Then he tilted his head, smiling curiously. "‘Reductive.’ You’re very
well-spoken.”

Then again, that might actually be a different bug -- smart-quotes seems to be getting the closing double quote right there, but not the opening one. (I don't know if the typography in Markdown is being run through the functions in the render module; I see my -- dashes are being rendered as em dashes, not en dashes.)

Frustrated with lack of Install

OK, I'm sure this is the Raco equivalent of "Check to make sure the computer is plugged in", but after installing Racket v6.1.1 and DR Racket, I try to install Pollen but get NOWHERE.
raco 6 1 1 problem
I've tried this at work, home, laptop, hardwired: always same result. Running Windows. Racket and Dr Racket seem to run - well, at least open - fine (but what do I know).

I'm no programmer, and my GitHub account is now 5 minutes old.

general static-site generator

Hello Matthew,

your "Why Lisp? Why Racket?" turned me eventually to learn the language - I bought RoR book yesterday and starting lerning according to my time-constraints.

Considering that I'm atm using Hugo - static site generator written in Go which is very nice and flexible capable to be used not for just blog-only sites like majority of other SSGs I did ask the author of Frog about his plans to extend it, but he mentioned your project considering he does not plan to change Frog's design.

I'm aware that you're probably more into 'web books' than 'general static site generator', still I'm asking what do you think about that idea and/or whether Pollen could be used/developed for such purpose, iow to build simple blog orriented web sites as well as more general/bigger web sites?

The obvious motivation is, of course, the fact that Markdown is too limited for larger or more complex docs - I'm awaiting next version of Hugo to bring support for Asciidoc(tor) - while by using Scribble one has lot of power in one's hands.

Third tutorial: "decode-content: unbound identifier in module in: decode-content"

Hi, Matthew!

Great tutorial your number 4! I've learned a lot. It's very clear and I think I got the main concepts. Thank you.

I copied-pasted the last example and got an error when executing project-require.rkt:

decode-content: unbound identifier in module in: decode-content

The funny thing is that pollen/decode is indeed included via require. So I don't understand where this error comes from.

Thank you in advance for your help.

Wanted: simpler support for URLs without extensions

Let me just preface everything I say here and for the foreseeable future (I anticipate submitting copious issues over time) that I am very attracted by Pollen's design aesthetic, and that I am hoping it will morph into a more general web publishing tool — and to accomplish that, I think it could use direct support for some publishing features that it currently doesn't support.

And with that, let me get to the first issue I am eyeing: I want to publish a website with extensionless URLs for its pages. Instead of http://example.com/page.html, I want http://example.com/page. Now, this can be accomplished by a variety of server-side configuration options which allow /page.html to be accessed at /page, but the more server-agnostic way of doing this is to generate page/index.html from page.html.pp.

Right now, the only way to accomplish this is to have /page/index.html.pp in my source. I would prefer to have /page.html.pp in my source tree, from which /page/index.html is generated, but this is impossible because pagetree rendering (by means of ->output-path and ->stem-source-path) assumes a particular relationship between source and output paths, and this relationship is not configurable.

So, in terms of end result, what I would like to see is support for pretty URLs.

The way I would like to get there is that I would like to see pagetrees extended to (optionally) specify a (source-path output-path) pair, instead of just a source path or just an output path. This would be useful in other ways — for example, if I want to keep various auxiliary files (like sitemaps and robots files) squirreled away somewhere to avoid clutter in the top level of my source tree, I could use a pagetree like '((robots.txt etc/robots.txt.pp) (sitemap.xml etc/sitemap.xml.pp)).

add escape character for output file extensions

Pollen uses a pattern of filenames with double extensions like hello.html.pm. This example indicates a Pollen source file (pm extension) that compiles to an HTML file (html extension).

Occasionally, however, these double extensions are not handled properly by editors or file dialogs.

The improvement would be to introduce an escape character that would indicate the output file extension and convert it automatically when rendering. For instance, instead of hello.html.pm, Pollen would let you use hello!html.pm. This would be recognized as a source file with a single extension, and then after rendering it would become hello.html as usual.

The escape character would be configurable.

I would not make this the default convention. It would simply be available as a workaround on systems where the double extensions are problematic.

Error while generating documentation for pollen

Hi,

The documentation index after installing pollen looks like this:
http://i.imgur.com/triy09m.png
The documentation for sugar and describe are built correctly.

It seems the problem is that css-tools is missing.

Here is the transcript:

mba-5:bin soegaard$ ./raco pkg install pollen
Resolving "pollen" via http://download.racket-lang.org/releases/6.0/catalog/
Resolving "pollen" via http://pkgs.racket-lang.org
Using cached13961856081396185608523 for https://github.com/mbutterick/pollen/tarball/acb0a34a551ec94ae86cddd8d884b404c957df07
The following uninstalled packages are listed as dependencies of pollen:
txexpr
sugar
markdown
Would you like to install these dependencies? [Y/n/a/?] Y
Resolving "txexpr" via http://download.racket-lang.org/releases/6.0/catalog/
Resolving "txexpr" via http://pkgs.racket-lang.org
Using cached13961856221396185622235 for https://github.com/mbutterick/txexpr/tarball/1146b9d267863a3232c209f6c21c83016a97a6a5
Resolving "sugar" via http://download.racket-lang.org/releases/6.0/catalog/
Resolving "sugar" via http://pkgs.racket-lang.org
Using cached13961856241396185624698 for https://github.com/mbutterick/sugar/tarball/ebbdd403f5b1068e569d5d9f6a4f35e26bad41cc
Resolving "markdown" via http://download.racket-lang.org/releases/6.0/catalog/
Resolving "markdown" via http://pkgs.racket-lang.org
Using cached13961856271396185627441 for https://github.com/greghendershott/markdown/tarball/1519dfe6e1d097a8397470688139538f589bfbed
The following uninstalled packages are listed as dependencies of sugar:
describe
Would you like to install these dependencies? [Y/n/a/?] Y
Resolving "describe" via http://download.racket-lang.org/releases/6.0/catalog/
Resolving "describe" via http://pkgs.racket-lang.org
Using cached13961963731396196373784 for https://github.com/mbutterick/describe/tarball/95fd4b867d02d57b7b6b5ac23ab61cbc8058c29c
The following uninstalled packages are listed as dependencies of markdown:
rackjure
parsack
sexp-diff
Would you like to install these dependencies? [Y/n/a/?] Y
Resolving "rackjure" via http://download.racket-lang.org/releases/6.0/catalog/
Resolving "rackjure" via http://pkgs.racket-lang.org
Using cached13961963791396196379696 for https://github.com/greghendershott/rackjure/tarball/f95d55d87c12ec27b6763f74d7bb13fb3f790b32
Resolving "parsack" via http://download.racket-lang.org/releases/6.0/catalog/
Resolving "parsack" via http://pkgs.racket-lang.org
Using cached13961963821396196382052 for https://github.com/stchang/parsack/tarball/338b6acdbbfad6f47d16abc7c9f33a5a7a1cf47a
Resolving "sexp-diff" via http://download.racket-lang.org/releases/6.0/catalog/
Resolving "sexp-diff" via http://pkgs.racket-lang.org
Using cached13961963891396196389355 for https://github.com/stamourv/sexp-diff/tarball/9a73188925a6e167322629f558435b813abed0b0
The following uninstalled packages were listed as dependencies
and they were installed:
dependencies of pollen:
txexpr
sugar
markdown
dependencies of sugar:
describe
dependencies of markdown:
rackjure
parsack
sexp-diff
raco setup: version: 6.0 [3m]
raco setup: installation name: 6.0
raco setup: variants: 3m
raco setup: main collects: /Applications/Racket v6.0/collects
raco setup: collects paths:
raco setup: /Users/soegaard/Library/Racket/6.0/collects
raco setup: /Applications/Racket v6.0/collects
raco setup: main pkgs: /Applications/Racket v6.0/share/pkgs
raco setup: pkgs paths:
raco setup: /Applications/Racket v6.0/share/pkgs
raco setup: /Users/soegaard/Library/Racket/6.0/pkgs
raco setup: links files:
raco setup: /Applications/Racket v6.0/share/links.rktd
raco setup: /Users/soegaard/Library/Racket/6.0/links.rktd
raco setup: main docs: /Applications/Racket v6.0/doc
raco setup: --- updating info-domain tables ---
raco setup: updating: /Users/soegaard/Library/Racket/6.0/share/info-cache.rktd
raco setup: --- pre-installing collections ---
raco setup: --- installing foreign libraries ---
raco setup: --- installing shared files ---
raco setup: --- compiling collections ---
raco setup: --- parallel build using 4 jobs ---
raco setup: 3 making: /describe (describe)
raco setup: 2 making: /markdown/markdown
raco setup: 1 making: /parsack/parsack
raco setup: 0 making: /pollen
raco setup: 1 making: /parsack/parsack/examples
raco setup: 1 making: /parsack/parsack/examples/tests
/Users/soegaard/Library/Racket/6.0/pkgs/pollen/convert.rkt:2:94: collection not found
for module path: css-tools/html
collection: "css-tools"
in collection directories:
/Users/soegaard/Library/Racket/6.0/collects
/Applications/Racket v6.0/collects
... [150 additional linked and package directories]
context...:
show-collection-err
standard-module-name-resolver
/Applications/Racket v6.0/collects/compiler/cm.rkt:345:0: compile-zo*
/Applications/Racket v6.0/collects/compiler/cm.rkt:552:26
/Applications/Racket v6.0/collects/compiler/cm.rkt:545:42
/Applications/Racket v6.0/collects/compiler/cm.rkt:510:0: maybe-compile-zo
/Applications/Racket v6.0/collects/compiler/cm.rkt:622:2: do-check
/Applications/Racket v6.0/collects/compiler/cm.rkt:703:4
/Applications/Racket v6.0/collects/setup/parallel-do.rkt:420:20: loop

raco setup: 1 making: /parsack/parsack/tests
/Users/soegaard/Library/Racket/6.0/pkgs/pollen/decode.rkt:2:67: collection not found
for module path: css-tools/html
collection: "css-tools"
in collection directories:
/Users/soegaard/Library/Racket/6.0/collects
/Applications/Racket v6.0/collects
... [150 additional linked and package directories]
context...:
show-collection-err
standard-module-name-resolver
/Applications/Racket v6.0/collects/compiler/cm.rkt:345:0: compile-zo*
/Applications/Racket v6.0/collects/compiler/cm.rkt:552:26
/Applications/Racket v6.0/collects/compiler/cm.rkt:545:42
/Applications/Racket v6.0/collects/compiler/cm.rkt:510:0: maybe-compile-zo
/Applications/Racket v6.0/collects/compiler/cm.rkt:622:2: do-check
/Applications/Racket v6.0/collects/compiler/cm.rkt:703:4
/Applications/Racket v6.0/collects/setup/parallel-do.rkt:420:20: loop

raco setup: 1 making: /rackjure/rackjure
/Users/soegaard/Library/Racket/6.0/pkgs/pollen/decode.rkt:2:67: collection not found
for module path: css-tools/html
collection: "css-tools"
in collection directories:
/Users/soegaard/Library/Racket/6.0/collects
/Applications/Racket v6.0/collects
... [150 additional linked and package directories]
context...:
show-collection-err
standard-module-name-resolver
/Applications/Racket v6.0/collects/compiler/cm.rkt:345:0: compile-zo*
/Applications/Racket v6.0/collects/compiler/cm.rkt:552:26
/Applications/Racket v6.0/collects/compiler/cm.rkt:545:42
/Applications/Racket v6.0/collects/compiler/cm.rkt:510:0: maybe-compile-zo
/Applications/Racket v6.0/collects/compiler/cm.rkt:622:2: do-check
/Applications/Racket v6.0/collects/compiler/cm.rkt:732:4: compilation-manager-load-handler
standard-module-name-resolver
/Applications/Racket v6.0/collects/compiler/cm.rkt:345:0: compile-zo*
/Applications/Racket v6.0/collects/compiler/cm.rkt:552:26
/Applications/Racket v6.0/collects/compiler/cm.rkt:545:42
/Applications/Racket v6.0/collects/compiler/cm.rkt:510:0: maybe-compile-zo
/Applications/Racket v6.0/collects/compiler/cm.rkt:622:2: do-check
/Applications/Racket v6.0/collects/compiler/cm.rkt:703:4
/Applications/Racket v6.0/collects/setup/parallel-do.rkt:420:20: loop

/Users/soegaard/Library/Racket/6.0/pkgs/pollen/decode.rkt:2:67: collection not found
for module path: css-tools/html
collection: "css-tools"
in collection directories:
/Users/soegaard/Library/Racket/6.0/collects
/Applications/Racket v6.0/collects
... [150 additional linked and package directories]
context...:
show-collection-err
standard-module-name-resolver
/Applications/Racket v6.0/collects/compiler/cm.rkt:345:0: compile-zo*
/Applications/Racket v6.0/collects/compiler/cm.rkt:552:26
/Applications/Racket v6.0/collects/compiler/cm.rkt:545:42
/Applications/Racket v6.0/collects/compiler/cm.rkt:510:0: maybe-compile-zo
/Applications/Racket v6.0/collects/compiler/cm.rkt:622:2: do-check
/Applications/Racket v6.0/collects/compiler/cm.rkt:732:4: compilation-manager-load-handler
standard-module-name-resolver
/Applications/Racket v6.0/collects/compiler/cm.rkt:345:0: compile-zo*
/Applications/Racket v6.0/collects/compiler/cm.rkt:552:26
/Applications/Racket v6.0/collects/compiler/cm.rkt:545:42
/Applications/Racket v6.0/collects/compiler/cm.rkt:510:0: maybe-compile-zo
/Applications/Racket v6.0/collects/compiler/cm.rkt:622:2: do-check
/Applications/Racket v6.0/collects/compiler/cm.rkt:732:4: compilation-manager-load-handler
standard-module-name-resolver...

/Users/soegaard/Library/Racket/6.0/pkgs/pollen/decode.rkt:2:67: collection not found
for module path: css-tools/html
collection: "css-tools"
in collection directories:
/Users/soegaard/Library/Racket/6.0/collects
/Applications/Racket v6.0/collects
... [150 additional linked and package directories]
context...:
show-collection-err
standard-module-name-resolver
/Applications/Racket v6.0/collects/compiler/cm.rkt:345:0: compile-zo*
/Applications/Racket v6.0/collects/compiler/cm.rkt:552:26
/Applications/Racket v6.0/collects/compiler/cm.rkt:545:42
/Applications/Racket v6.0/collects/compiler/cm.rkt:510:0: maybe-compile-zo
/Applications/Racket v6.0/collects/compiler/cm.rkt:622:2: do-check
/Applications/Racket v6.0/collects/compiler/cm.rkt:732:4: compilation-manager-load-handler
standard-module-name-resolver
/Applications/Racket v6.0/collects/compiler/cm.rkt:345:0: compile-zo*
/Applications/Racket v6.0/collects/compiler/cm.rkt:552:26
/Applications/Racket v6.0/collects/compiler/cm.rkt:545:42
/Applications/Racket v6.0/collects/compiler/cm.rkt:510:0: maybe-compile-zo
/Applications/Racket v6.0/collects/compiler/cm.rkt:622:2: do-check
/Applications/Racket v6.0/collects/compiler/cm.rkt:732:4: compilation-manager-load-handler
standard-module-name-resolver...

raco setup: 1 making: /rackjure/rackjure/lang
raco setup: 1 making: /sexp-diff/sexp-diff
raco setup: 1 making: /sugar
x: undefined;
cannot reference an identifier before its definition
in module: 'macro
phase: 1
context...:
/Applications/Racket v6.0/collects/compiler/cm.rkt:345:0: compile-zo*
/Applications/Racket v6.0/collects/compiler/cm.rkt:552:26
/Applications/Racket v6.0/collects/compiler/cm.rkt:545:42
/Applications/Racket v6.0/collects/compiler/cm.rkt:510:0: maybe-compile-zo
/Applications/Racket v6.0/collects/compiler/cm.rkt:622:2: do-check
/Applications/Racket v6.0/collects/compiler/cm.rkt:703:4
/Applications/Racket v6.0/collects/setup/parallel-do.rkt:420:20: loop

raco setup: 2 making: /markdown/markdown/test
raco setup: 2 making: /txexpr
/Users/soegaard/Library/Racket/6.0/pkgs/pollen/decode.rkt:2:67: collection not found
for module path: css-tools/html
collection: "css-tools"
in collection directories:
/Users/soegaard/Library/Racket/6.0/collects
/Applications/Racket v6.0/collects
... [150 additional linked and package directories]
context...:
show-collection-err
standard-module-name-resolver
/Applications/Racket v6.0/collects/compiler/cm.rkt:345:0: compile-zo*
/Applications/Racket v6.0/collects/compiler/cm.rkt:552:26
/Applications/Racket v6.0/collects/compiler/cm.rkt:545:42
/Applications/Racket v6.0/collects/compiler/cm.rkt:510:0: maybe-compile-zo
/Applications/Racket v6.0/collects/compiler/cm.rkt:622:2: do-check
/Applications/Racket v6.0/collects/compiler/cm.rkt:732:4: compilation-manager-load-handler
standard-module-name-resolver
/Applications/Racket v6.0/collects/compiler/cm.rkt:345:0: compile-zo*
/Applications/Racket v6.0/collects/compiler/cm.rkt:552:26
/Applications/Racket v6.0/collects/compiler/cm.rkt:545:42
/Applications/Racket v6.0/collects/compiler/cm.rkt:510:0: maybe-compile-zo
/Applications/Racket v6.0/collects/compiler/cm.rkt:622:2: do-check
/Applications/Racket v6.0/collects/compiler/cm.rkt:732:4: compilation-manager-load-handler
standard-module-name-resolver...

raco setup: 1 making: /sugar/coerce
/Users/soegaard/Library/Racket/6.0/pkgs/txexpr/tests.rkt:121:15: txexpr->html: unbound identifier in module
in: txexpr->html
context...:
/Applications/Racket v6.0/collects/compiler/cm.rkt:345:0: compile-zo*
/Applications/Racket v6.0/collects/compiler/cm.rkt:552:26
/Applications/Racket v6.0/collects/compiler/cm.rkt:545:42
/Applications/Racket v6.0/collects/compiler/cm.rkt:510:0: maybe-compile-zo
/Applications/Racket v6.0/collects/compiler/cm.rkt:622:2: do-check
/Applications/Racket v6.0/collects/compiler/cm.rkt:703:4
/Applications/Racket v6.0/collects/setup/parallel-do.rkt:420:20: loop

raco setup: 2 making: /txexpr/scribblings
/Users/soegaard/Library/Racket/6.0/pkgs/pollen/decode.rkt:2:67: collection not found
for module path: css-tools/html
collection: "css-tools"
in collection directories:
/Users/soegaard/Library/Racket/6.0/collects
/Applications/Racket v6.0/collects
... [150 additional linked and package directories]
context...:
show-collection-err
standard-module-name-resolver
/Applications/Racket v6.0/collects/compiler/cm.rkt:345:0: compile-zo*
/Applications/Racket v6.0/collects/compiler/cm.rkt:552:26
/Applications/Racket v6.0/collects/compiler/cm.rkt:545:42
/Applications/Racket v6.0/collects/compiler/cm.rkt:510:0: maybe-compile-zo
/Applications/Racket v6.0/collects/compiler/cm.rkt:622:2: do-check
/Applications/Racket v6.0/collects/compiler/cm.rkt:732:4: compilation-manager-load-handler
standard-module-name-resolver
/Applications/Racket v6.0/collects/compiler/cm.rkt:345:0: compile-zo*
/Applications/Racket v6.0/collects/compiler/cm.rkt:552:26
/Applications/Racket v6.0/collects/compiler/cm.rkt:545:42
/Applications/Racket v6.0/collects/compiler/cm.rkt:510:0: maybe-compile-zo
/Applications/Racket v6.0/collects/compiler/cm.rkt:622:2: do-check
/Applications/Racket v6.0/collects/compiler/cm.rkt:732:4: compilation-manager-load-handler
standard-module-name-resolver...

raco setup: 0 making: /pollen/scribblings
raco setup: 1 making: /sugar/define
raco setup: 1 making: /sugar/scribblings
raco setup: 0 making: /pollen/server-extras
raco setup: 0 making: /pollen/tests
/Users/soegaard/Library/Racket/6.0/pkgs/pollen/decode.rkt:2:67: collection not found
for module path: css-tools/html
collection: "css-tools"
in collection directories:
/Users/soegaard/Library/Racket/6.0/collects
/Applications/Racket v6.0/collects
... [150 additional linked and package directories]
context...:
show-collection-err
standard-module-name-resolver
/Applications/Racket v6.0/collects/compiler/cm.rkt:345:0: compile-zo*
/Applications/Racket v6.0/collects/compiler/cm.rkt:552:26
/Applications/Racket v6.0/collects/compiler/cm.rkt:545:42
/Applications/Racket v6.0/collects/compiler/cm.rkt:510:0: maybe-compile-zo
/Applications/Racket v6.0/collects/compiler/cm.rkt:622:2: do-check
/Applications/Racket v6.0/collects/compiler/cm.rkt:732:4: compilation-manager-load-handler
standard-module-name-resolver
/Applications/Racket v6.0/collects/compiler/cm.rkt:345:0: compile-zo*
/Applications/Racket v6.0/collects/compiler/cm.rkt:552:26
/Applications/Racket v6.0/collects/compiler/cm.rkt:545:42
/Applications/Racket v6.0/collects/compiler/cm.rkt:510:0: maybe-compile-zo
/Applications/Racket v6.0/collects/compiler/cm.rkt:622:2: do-check
/Applications/Racket v6.0/collects/compiler/cm.rkt:703:4
/Applications/Racket v6.0/collects/setup/parallel-do.rkt:420:20: loop

/Users/soegaard/Library/Racket/6.0/pkgs/pollen/decode.rkt:2:67: collection not found
for module path: css-tools/html
collection: "css-tools"
in collection directories:
/Users/soegaard/Library/Racket/6.0/collects
/Applications/Racket v6.0/collects
... [150 additional linked and package directories]
context...:
show-collection-err
standard-module-name-resolver
standard-module-name-resolver
/Applications/Racket v6.0/collects/compiler/cm.rkt:345:0: compile-zo*
/Applications/Racket v6.0/collects/compiler/cm.rkt:552:26
/Applications/Racket v6.0/collects/compiler/cm.rkt:545:42
/Applications/Racket v6.0/collects/compiler/cm.rkt:510:0: maybe-compile-zo
/Applications/Racket v6.0/collects/compiler/cm.rkt:622:2: do-check
/Applications/Racket v6.0/collects/compiler/cm.rkt:732:4: compilation-manager-load-handler
standard-module-name-resolver
/Applications/Racket v6.0/collects/compiler/cm.rkt:345:0: compile-zo*
/Applications/Racket v6.0/collects/compiler/cm.rkt:552:26
/Applications/Racket v6.0/collects/compiler/cm.rkt:545:42
/Applications/Racket v6.0/collects/compiler/cm.rkt:510:0: maybe-compile-zo
/Applications/Racket v6.0/collects/compiler/cm.rkt:622:2: do-check
/Applications/Racket v6.0/collects/compiler/cm.rkt:703:4...

raco setup: 0 making: /pollen/tests/samples
/Users/soegaard/Library/Racket/6.0/pkgs/pollen/decode.rkt:2:67: collection not found
for module path: css-tools/html
collection: "css-tools"
in collection directories:
/Users/soegaard/Library/Racket/6.0/collects
/Applications/Racket v6.0/collects
... [150 additional linked and package directories]
context...:
show-collection-err
standard-module-name-resolver
standard-module-name-resolver
/Applications/Racket v6.0/collects/compiler/cm.rkt:345:0: compile-zo*
/Applications/Racket v6.0/collects/compiler/cm.rkt:552:26
/Applications/Racket v6.0/collects/compiler/cm.rkt:545:42
/Applications/Racket v6.0/collects/compiler/cm.rkt:510:0: maybe-compile-zo
/Applications/Racket v6.0/collects/compiler/cm.rkt:622:2: do-check
/Applications/Racket v6.0/collects/compiler/cm.rkt:703:4
/Applications/Racket v6.0/collects/setup/parallel-do.rkt:420:20: loop

/Users/soegaard/Library/Racket/6.0/pkgs/pollen/decode.rkt:2:67: collection not found
for module path: css-tools/html
collection: "css-tools"
in collection directories:
/Users/soegaard/Library/Racket/6.0/collects
/Applications/Racket v6.0/collects
... [150 additional linked and package directories]
context...:
show-collection-err
standard-module-name-resolver
/Applications/Racket v6.0/collects/compiler/cm.rkt:345:0: compile-zo*
/Applications/Racket v6.0/collects/compiler/cm.rkt:552:26
/Applications/Racket v6.0/collects/compiler/cm.rkt:545:42
/Applications/Racket v6.0/collects/compiler/cm.rkt:510:0: maybe-compile-zo
/Applications/Racket v6.0/collects/compiler/cm.rkt:622:2: do-check
/Applications/Racket v6.0/collects/compiler/cm.rkt:732:4: compilation-manager-load-handler
standard-module-name-resolver
/Applications/Racket v6.0/collects/compiler/cm.rkt:345:0: compile-zo*
/Applications/Racket v6.0/collects/compiler/cm.rkt:552:26
/Applications/Racket v6.0/collects/compiler/cm.rkt:545:42
/Applications/Racket v6.0/collects/compiler/cm.rkt:510:0: maybe-compile-zo
/Applications/Racket v6.0/collects/compiler/cm.rkt:622:2: do-check
/Applications/Racket v6.0/collects/compiler/cm.rkt:732:4: compilation-manager-load-handler
standard-module-name-resolver...

/Users/soegaard/Library/Racket/6.0/pkgs/pollen/decode.rkt:2:67: collection not found
for module path: css-tools/html
collection: "css-tools"
in collection directories:
/Users/soegaard/Library/Racket/6.0/collects
/Applications/Racket v6.0/collects
... [150 additional linked and package directories]
context...:
show-collection-err
standard-module-name-resolver
/Applications/Racket v6.0/collects/compiler/cm.rkt:345:0: compile-zo*
/Applications/Racket v6.0/collects/compiler/cm.rkt:552:26
/Applications/Racket v6.0/collects/compiler/cm.rkt:545:42
/Applications/Racket v6.0/collects/compiler/cm.rkt:510:0: maybe-compile-zo
/Applications/Racket v6.0/collects/compiler/cm.rkt:622:2: do-check
/Applications/Racket v6.0/collects/compiler/cm.rkt:732:4: compilation-manager-load-handler
standard-module-name-resolver
/Applications/Racket v6.0/collects/compiler/cm.rkt:345:0: compile-zo*
/Applications/Racket v6.0/collects/compiler/cm.rkt:552:26
/Applications/Racket v6.0/collects/compiler/cm.rkt:545:42
/Applications/Racket v6.0/collects/compiler/cm.rkt:510:0: maybe-compile-zo
/Applications/Racket v6.0/collects/compiler/cm.rkt:622:2: do-check
/Applications/Racket v6.0/collects/compiler/cm.rkt:732:4: compilation-manager-load-handler
standard-module-name-resolver...

raco setup: 3 making: /describe/scribblings
raco setup: --- creating launchers ---
raco setup: --- installing man pages ---
raco setup: --- building documentation ---
raco setup: 2 running: /describe/scribblings/describe.scrbl
raco setup: 1 running: /pollen/scribblings/pollen.scrbl
raco setup: error running: (lib pollen/scribblings/pollen.scrbl)
/Users/soegaard/Library/Racket/6.0/pkgs/pollen/decode.rkt:2:67: collection not found
for module path: css-tools/html
collection: "css-tools"
in collection directories:
/Users/soegaard/Library/Racket/6.0/collects
/Applications/Racket v6.0/collects
... [150 additional linked and package directories]
context...:
show-collection-err
standard-module-name-resolver
standard-module-name-resolver
standard-module-name-resolver
standard-module-name-resolver
standard-module-name-resolver
/Applications/Racket v6.0/collects/racket/require-transform.rkt:266:2: expand-import
/Applications/Racket v6.0/collects/racket/private/reqprov.rkt:376:5
/Applications/Racket v6.0/collects/racket/require-transform.rkt:266:2: expand-import
try-next
/Applications/Racket v6.0/collects/racket/private/reqprov.rkt:243:2
/Applications/Racket v6.0/collects/racket/private/modbeg.rkt:46:4
standard-module-name-resolver
/Applications/Racket v6.0/collects/racket/require-transform.rkt:266:2: expand-import
/Applications/Racket v6.0/collects/racket/private/reqprov.rkt:376:5
/Applications/Racket v6.0/collects/racket/require-transform.rkt:266:2: expand-import...

/Users/soegaard/Library/Racket/6.0/pkgs/pollen/decode.rkt:2:67: collection not found
for module path: css-tools/html
collection: "css-tools"
in collection directories:
/Users/soegaard/Library/Racket/6.0/collects
/Applications/Racket v6.0/collects
... [150 additional linked and package directories]
context...:
show-collection-err
standard-module-name-resolver
standard-module-name-resolver
standard-module-name-resolver
standard-module-name-resolver
standard-module-name-resolver
/Applications/Racket v6.0/collects/racket/require-transform.rkt:266:2: expand-import
/Applications/Racket v6.0/collects/racket/private/reqprov.rkt:376:5
/Applications/Racket v6.0/collects/racket/require-transform.rkt:266:2: expand-import
try-next
/Applications/Racket v6.0/collects/racket/private/reqprov.rkt:243:2
/Applications/Racket v6.0/collects/racket/private/modbeg.rkt:46:4
standard-module-name-resolver
/Applications/Racket v6.0/collects/racket/require-transform.rkt:266:2: expand-import
/Applications/Racket v6.0/collects/racket/private/reqprov.rkt:376:5
/Applications/Racket v6.0/collects/racket/require-transform.rkt:266:2: expand-import...

raco setup: 0 running: /sexp-diff/sexp-diff/sexp-diff.scrbl
raco setup: 1 running: /sugar/scribblings/sugar.scrbl
raco setup: 3 running: /txexpr/scribblings/txexpr.scrbl
raco setup: WARNING: undefined tag in /sugar/scribblings/sugar.scrbl:
raco setup: ((lib "sugar/main.rkt") len)
raco setup: 3 rendering: /describe/scribblings/describe.scrbl
raco setup: 2 rendering: /racket-index/scribblings/main/user/local-redirect.scrbl
raco setup: 1 rendering: /racket-index/scribblings/main/user/release.scrbl
raco setup: 0 rendering: /racket-index/scribblings/main/user/search.scrbl
raco setup: 1 rendering: /sexp-diff/sexp-diff/sexp-diff.scrbl
raco setup: 1 rendering: /racket-index/scribblings/main/user/start.scrbl
raco setup: 2 rendering: /sugar/scribblings/sugar.scrbl
raco setup: 0 rendering: /txexpr/scribblings/txexpr.scrbl
raco setup: --- installing collections ---
raco setup: --- post-installing collections ---
raco setup: --- summary of errors ---
raco setup: error: during making for /pollen
raco setup: /Users/soegaard/Library/Racket/6.0/pkgs/pollen/convert.rkt:2:94: collection not found
raco setup: for module path: css-tools/html
raco setup: collection: "css-tools"
raco setup: in collection directories:
raco setup: /Users/soegaard/Library/Racket/6.0/collects
raco setup: /Applications/Racket v6.0/collects
raco setup: ... [150 additional linked and package directories]
raco setup: context...:
raco setup: show-collection-err
raco setup: standard-module-name-resolver
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:345:0: compile-zo*
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:552:26
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:545:42
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:510:0: maybe-compile-zo
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:622:2: do-check
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:703:4
raco setup: /Applications/Racket v6.0/collects/setup/parallel-do.rkt:420:20: loop
raco setup:
raco setup: error: during making for /pollen
raco setup: /Users/soegaard/Library/Racket/6.0/pkgs/pollen/decode.rkt:2:67: collection not found
raco setup: for module path: css-tools/html
raco setup: collection: "css-tools"
raco setup: in collection directories:
raco setup: /Users/soegaard/Library/Racket/6.0/collects
raco setup: /Applications/Racket v6.0/collects
raco setup: ... [150 additional linked and package directories]
raco setup: context...:
raco setup: show-collection-err
raco setup: standard-module-name-resolver
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:345:0: compile-zo*
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:552:26
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:545:42
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:510:0: maybe-compile-zo
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:622:2: do-check
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:703:4
raco setup: /Applications/Racket v6.0/collects/setup/parallel-do.rkt:420:20: loop
raco setup:
raco setup: error: during making for /pollen
raco setup: /Users/soegaard/Library/Racket/6.0/pkgs/pollen/decode.rkt:2:67: collection not found
raco setup: for module path: css-tools/html
raco setup: collection: "css-tools"
raco setup: in collection directories:
raco setup: /Users/soegaard/Library/Racket/6.0/collects
raco setup: /Applications/Racket v6.0/collects
raco setup: ... [150 additional linked and package directories]
raco setup: context...:
raco setup: show-collection-err
raco setup: standard-module-name-resolver
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:345:0: compile-zo*
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:552:26
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:545:42
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:510:0: maybe-compile-zo
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:622:2: do-check
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:732:4: compilation-manager-load-handler
raco setup: standard-module-name-resolver
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:345:0: compile-zo*
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:552:26
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:545:42
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:510:0: maybe-compile-zo
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:622:2: do-check
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:703:4
raco setup: /Applications/Racket v6.0/collects/setup/parallel-do.rkt:420:20: loop
raco setup:
raco setup: error: during making for /pollen
raco setup: /Users/soegaard/Library/Racket/6.0/pkgs/pollen/decode.rkt:2:67: collection not found
raco setup: for module path: css-tools/html
raco setup: collection: "css-tools"
raco setup: in collection directories:
raco setup: /Users/soegaard/Library/Racket/6.0/collects
raco setup: /Applications/Racket v6.0/collects
raco setup: ... [150 additional linked and package directories]
raco setup: context...:
raco setup: show-collection-err
raco setup: standard-module-name-resolver
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:345:0: compile-zo*
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:552:26
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:545:42
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:510:0: maybe-compile-zo
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:622:2: do-check
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:732:4: compilation-manager-load-handler
raco setup: standard-module-name-resolver
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:345:0: compile-zo*
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:552:26
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:545:42
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:510:0: maybe-compile-zo
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:622:2: do-check
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:732:4: compilation-manager-load-handler
raco setup: standard-module-name-resolver...
raco setup:
raco setup:
raco setup: error: during making for /pollen
raco setup: /Users/soegaard/Library/Racket/6.0/pkgs/pollen/decode.rkt:2:67: collection not found
raco setup: for module path: css-tools/html
raco setup: collection: "css-tools"
raco setup: in collection directories:
raco setup: /Users/soegaard/Library/Racket/6.0/collects
raco setup: /Applications/Racket v6.0/collects
raco setup: ... [150 additional linked and package directories]
raco setup: context...:
raco setup: show-collection-err
raco setup: standard-module-name-resolver
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:345:0: compile-zo*
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:552:26
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:545:42
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:510:0: maybe-compile-zo
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:622:2: do-check
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:732:4: compilation-manager-load-handler
raco setup: standard-module-name-resolver
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:345:0: compile-zo*
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:552:26
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:545:42
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:510:0: maybe-compile-zo
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:622:2: do-check
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:732:4: compilation-manager-load-handler
raco setup: standard-module-name-resolver...
raco setup:
raco setup:
raco setup: error: during making for /sugar
raco setup: x: undefined;
raco setup: cannot reference an identifier before its definition
raco setup: in module: 'macro
raco setup: phase: 1
raco setup: context...:
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:345:0: compile-zo*
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:552:26
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:545:42
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:510:0: maybe-compile-zo
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:622:2: do-check
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:703:4
raco setup: /Applications/Racket v6.0/collects/setup/parallel-do.rkt:420:20: loop
raco setup:
raco setup: error: during making for /pollen
raco setup: /Users/soegaard/Library/Racket/6.0/pkgs/pollen/decode.rkt:2:67: collection not found
raco setup: for module path: css-tools/html
raco setup: collection: "css-tools"
raco setup: in collection directories:
raco setup: /Users/soegaard/Library/Racket/6.0/collects
raco setup: /Applications/Racket v6.0/collects
raco setup: ... [150 additional linked and package directories]
raco setup: context...:
raco setup: show-collection-err
raco setup: standard-module-name-resolver
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:345:0: compile-zo*
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:552:26
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:545:42
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:510:0: maybe-compile-zo
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:622:2: do-check
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:732:4: compilation-manager-load-handler
raco setup: standard-module-name-resolver
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:345:0: compile-zo*
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:552:26
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:545:42
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:510:0: maybe-compile-zo
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:622:2: do-check
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:732:4: compilation-manager-load-handler
raco setup: standard-module-name-resolver...
raco setup:
raco setup:
raco setup: error: during making for /txexpr
raco setup: /Users/soegaard/Library/Racket/6.0/pkgs/txexpr/tests.rkt:121:15: txexpr->html: unbound identifier in module
raco setup: in: txexpr->html
raco setup: context...:
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:345:0: compile-zo*
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:552:26
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:545:42
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:510:0: maybe-compile-zo
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:622:2: do-check
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:703:4
raco setup: /Applications/Racket v6.0/collects/setup/parallel-do.rkt:420:20: loop
raco setup:
raco setup: error: during making for /pollen
raco setup: /Users/soegaard/Library/Racket/6.0/pkgs/pollen/decode.rkt:2:67: collection not found
raco setup: for module path: css-tools/html
raco setup: collection: "css-tools"
raco setup: in collection directories:
raco setup: /Users/soegaard/Library/Racket/6.0/collects
raco setup: /Applications/Racket v6.0/collects
raco setup: ... [150 additional linked and package directories]
raco setup: context...:
raco setup: show-collection-err
raco setup: standard-module-name-resolver
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:345:0: compile-zo*
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:552:26
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:545:42
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:510:0: maybe-compile-zo
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:622:2: do-check
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:732:4: compilation-manager-load-handler
raco setup: standard-module-name-resolver
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:345:0: compile-zo*
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:552:26
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:545:42
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:510:0: maybe-compile-zo
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:622:2: do-check
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:732:4: compilation-manager-load-handler
raco setup: standard-module-name-resolver...
raco setup:
raco setup:
raco setup: error: during making for /pollen/tests
raco setup: /Users/soegaard/Library/Racket/6.0/pkgs/pollen/decode.rkt:2:67: collection not found
raco setup: for module path: css-tools/html
raco setup: collection: "css-tools"
raco setup: in collection directories:
raco setup: /Users/soegaard/Library/Racket/6.0/collects
raco setup: /Applications/Racket v6.0/collects
raco setup: ... [150 additional linked and package directories]
raco setup: context...:
raco setup: show-collection-err
raco setup: standard-module-name-resolver
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:345:0: compile-zo*
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:552:26
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:545:42
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:510:0: maybe-compile-zo
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:622:2: do-check
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:732:4: compilation-manager-load-handler
raco setup: standard-module-name-resolver
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:345:0: compile-zo*
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:552:26
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:545:42
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:510:0: maybe-compile-zo
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:622:2: do-check
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:703:4
raco setup: /Applications/Racket v6.0/collects/setup/parallel-do.rkt:420:20: loop
raco setup:
raco setup: error: during making for /pollen/tests
raco setup: /Users/soegaard/Library/Racket/6.0/pkgs/pollen/decode.rkt:2:67: collection not found
raco setup: for module path: css-tools/html
raco setup: collection: "css-tools"
raco setup: in collection directories:
raco setup: /Users/soegaard/Library/Racket/6.0/collects
raco setup: /Applications/Racket v6.0/collects
raco setup: ... [150 additional linked and package directories]
raco setup: context...:
raco setup: show-collection-err
raco setup: standard-module-name-resolver
raco setup: standard-module-name-resolver
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:345:0: compile-zo*
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:552:26
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:545:42
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:510:0: maybe-compile-zo
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:622:2: do-check
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:732:4: compilation-manager-load-handler
raco setup: standard-module-name-resolver
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:345:0: compile-zo*
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:552:26
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:545:42
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:510:0: maybe-compile-zo
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:622:2: do-check
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:703:4...
raco setup:
raco setup:
raco setup: error: during making for /pollen/tests
raco setup: /Users/soegaard/Library/Racket/6.0/pkgs/pollen/decode.rkt:2:67: collection not found
raco setup: for module path: css-tools/html
raco setup: collection: "css-tools"
raco setup: in collection directories:
raco setup: /Users/soegaard/Library/Racket/6.0/collects
raco setup: /Applications/Racket v6.0/collects
raco setup: ... [150 additional linked and package directories]
raco setup: context...:
raco setup: show-collection-err
raco setup: standard-module-name-resolver
raco setup: standard-module-name-resolver
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:345:0: compile-zo*
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:552:26
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:545:42
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:510:0: maybe-compile-zo
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:622:2: do-check
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:703:4
raco setup: /Applications/Racket v6.0/collects/setup/parallel-do.rkt:420:20: loop
raco setup:
raco setup: error: during making for /pollen/tests
raco setup: /Users/soegaard/Library/Racket/6.0/pkgs/pollen/decode.rkt:2:67: collection not found
raco setup: for module path: css-tools/html
raco setup: collection: "css-tools"
raco setup: in collection directories:
raco setup: /Users/soegaard/Library/Racket/6.0/collects
raco setup: /Applications/Racket v6.0/collects
raco setup: ... [150 additional linked and package directories]
raco setup: context...:
raco setup: show-collection-err
raco setup: standard-module-name-resolver
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:345:0: compile-zo*
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:552:26
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:545:42
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:510:0: maybe-compile-zo
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:622:2: do-check
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:732:4: compilation-manager-load-handler
raco setup: standard-module-name-resolver
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:345:0: compile-zo*
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:552:26
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:545:42
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:510:0: maybe-compile-zo
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:622:2: do-check
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:732:4: compilation-manager-load-handler
raco setup: standard-module-name-resolver...
raco setup:
raco setup:
raco setup: error: during making for /pollen
raco setup: /Users/soegaard/Library/Racket/6.0/pkgs/pollen/decode.rkt:2:67: collection not found
raco setup: for module path: css-tools/html
raco setup: collection: "css-tools"
raco setup: in collection directories:
raco setup: /Users/soegaard/Library/Racket/6.0/collects
raco setup: /Applications/Racket v6.0/collects
raco setup: ... [150 additional linked and package directories]
raco setup: context...:
raco setup: show-collection-err
raco setup: standard-module-name-resolver
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:345:0: compile-zo*
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:552:26
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:545:42
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:510:0: maybe-compile-zo
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:622:2: do-check
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:732:4: compilation-manager-load-handler
raco setup: standard-module-name-resolver
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:345:0: compile-zo*
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:552:26
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:545:42
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:510:0: maybe-compile-zo
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:622:2: do-check
raco setup: /Applications/Racket v6.0/collects/compiler/cm.rkt:732:4: compilation-manager-load-handler
raco setup: standard-module-name-resolver...
raco setup:
raco setup:
raco pkg install: packages installed, although setup reported errors
mba-5:bin soegaard$
mba-5:bin soegaard$

Servlet Error

I get an error when trying to master the second tutorial.
I created article.html.pmd. But if I click in the tree on "out" I get the following error. I have the same issue with all other files: "out" triggers a servlet error.
What do I do wrong?

`Exception

The application raised an exception with the message:

string-downcase: contract violation
expected: string?
given: 'gif

Stack trace:

loop at:

at:
line 255, column 18, in file /usr/share/racket/collects/racket/contract/private/arrow-val-first.rkt
out at:

at:
line 49, column 2, in file /home/marc/.racket/6.1/pkgs/pollen/server-routes.rkt
at:
line 58, column 2, in file /usr/share/racket/pkgs/web-server-lib/web-server/dispatchers/dispatch-servlets.rkt
at:
line 112, column 8, in file /usr/share/racket/pkgs/web-server-lib/web-server/private/dispatch-server-unit.rkt`

Inserting X-expressions into templates

I'm trying to build a blog-like system on top of Pollen. I've been putting properties like creation and modification date into the 'meta. At a point in the template I have code which looks like:

<p>Originally published: ◊(mk-date ◊(select-from-metas 'published metas))</p>

The mk-date function is defined in my directory-require.rkt as:

(define (mk-date date-string)
  (date-display-format 'american)
  (make-txexpr 'date '()
               (list (date->string (string->date date-string "~Y-~m-~d")))))

However, it looks like the output of mk-date is not processed as an X-expression. What I see in the HTML is: <p>Originally published: pSunday, April 19th, 2015</p>.

Admittedly, the mk-date function is a bit overkill for this particular application, but I'll probably want to do similar things, where some user-specified fields in 'metas are processed into more complicated structures before getting injected into a template.

How to hook a decode procedure as xexpr postprocessing

Héllo,

In the documentation, it's written that it's possible to hook a decode function to an xexpr. I did not find how. The documentation says it needs to be updated.

I want to use to do some typographic corrections, just like it's suggested in the decode documentation (replacing " with « in french for instance, or using dashes to create item lists à la markdown or just create p tags for paragraphs...

I have another problem, I use a template.html file with ◊->html{◊doc} but it embeds a root node, see example at http://hypermove.fr/2014/why-nerfed.html#doc the div#doc child is a root node.

My project is simple, the only "extra" feature I've written will browse a directory for blog posts and include them in the index page cf. index-year

Thanks.

Can't save file as .pp in DrRacket

[Matthew--I figured out what was going on. Thanks for your help. Here are the details for everyone's benefit.]

I'm using DrRacket on Mac OS X. When following the "Quick tour" here (http://mbutterick.github.io/pollen/doc/quick-tour.html) I had significant difficulty saving files with the .pp extension. It turns out that I was getting hung up by the UI in DrRacket dialog.

These are the more elaborated instructions for saving a file as .pp in DrRacket:

  • Press Save
  • In Save dialog enter the file name that you (e.g., hello.txt.pp). There are two different ways to do this
  • One way is to press the "Hide Extension" checkbox and enter the file name
  • The other way is to manually remove the .rkt extension that is automatically appended to file names (e.g., hello.txt.pp.rkt). When you do this, the “Hide Extension” checkbox will automatically become checked.
  • Either way press Save, and
  • In the popup dialog, press “Use .pp”

Note: You can't get just the file name you want to show up AND the "Hide Extension" to NOT be checked!

raco pollen fails when given multiple input paths starting with ./

This fails:

$ raco pollen render ./about/index.html.pmd ./electronics/ntc-thermistor-network/index.html.pmd
Rendering /Users/ben/Desktop/Staccato Signals.pollen/about/index.html.pmd
render: index.html.pmd
cpu time: 180 real time: 189 gc time: 93
render: index.html.pmd
find-relative-path: contract violation
  expected: (and/c path-for-some-system? simple-form?)
  given: #<path:/Users/ben/Desktop/Staccato Signals.pollen/./electronics/ntc-thermistor-network/>
  context...:
   /opt/homebrew-cask/Caskroom/racket/6.1.1/Racket v6.1.1/collects/racket/path.rkt:116:2: for-loop
   /opt/homebrew-cask/Caskroom/racket/6.1.1/Racket v6.1.1/collects/racket/path.rkt:114:0: do-explode-path
   /opt/homebrew-cask/Caskroom/racket/6.1.1/Racket v6.1.1/collects/racket/path.rkt:124:0: find-relative-path5
   core225
   render-to-file
   unpack62
   loop
   (submod /Users/ben/Library/Racket/6.1.1/pkgs/pollen/raco.rkt main): [running body]
   /opt/homebrew-cask/Caskroom/racket/6.1.1/Racket v6.1.1/collects/raco/raco.rkt: [running body]
   /opt/homebrew-cask/Caskroom/racket/6.1.1/Racket v6.1.1/collects/raco/main.rkt: [running body]

But this works:

$ raco pollen render about/index.html.pmd electronics/ntc-thermistor-network/index.html.pmd
Rendering /Users/ben/Desktop/Staccato Signals.pollen/about/index.html.pmd
render: index.html.pmd
cpu time: 182 real time: 192 gc time: 93
render: index.html.pmd
cpu time: 66 real time: 66 gc time: 0

unbound identifier error

Hi--

I'm on Win7 x64 and had Pollen working a few weeks ago. Came back today, updated it, and now when I type "raco pollen start" I see

C:\Users\Administrator\AppData\Roaming\Racket\6.0.1\pkgs\pollen\file.rkt:76:56: remove-ext_: unbound identifier in module
in: remove-ext_

BTW, I haven't spent much time with it yet, but I have a feeling that Pollen may well be the web authoring tool of my dreams. Thanks for making it available.

-Nil

Add support for multiple rendering targets

Thank you for this project, and in particular the very thorough documentation.

I'm trying to use pollen to generate LaTeX code (specifically ConTeXt flavoured). I'm therefore not terribly interested in using the pollen server; I prefer to render with something like "raco pollen render document.tex.pp".

When doing so, is there a way to use a custom template file, or is that something setup by the server? Can I specify it on the command line (e.g. "raco pollen render --template my-template.tex document.tex.pp")? So far, I don't seem able to persuade the raco tool to use a custom template.

Wanted: simpler metas syntax

The current metas syntax is, IMO, overly noisy and verbose. I'd like to see it simplified from

◊meta('key "value")
◊meta('key2 "value2")
◊meta('key3 "value3")

to something more like:

◊metas(
    key "value"
    key2 "value2"
    key3 "value3"
)

add command-line options to control Scribble rendering

As suggested by @mfelleisen:

Here is the relevant fragment from my own script that I have used for years to render HtDP/2e. I think you want to figure out how to invoke render here and what to give it as options:

;; String String Boolean String[URL] { [Class -> Class] } -> Void
;; the render-mixin implements render<%>
(define (scribble-it stem destination draft? redirect? (renderer render-mixin))
(define stem.scrbl (string-append stem ".scrbl"))
(define stem.html (string-append stem ".html"))
((dynamic-require "shared.ss" 'is-draft?) draft?)
(define stem.doc (dynamic-require stem.scrbl 'doc))
(render (list stem.doc) (list stem)
#:render-mixin renderer
#:dest-dir destination
#:xrefs (list (load-collections-xref))
#:quiet? #false
#:redirect-main redirect?)
;; ---
(parameterize ([current-directory destination])
(cleanup)
(send-url/file (if (file-exists? stem.html) stem.html (build-path stem "index.html")))))

Ultimately you want a specification language that matches your Pollen language design and whatever people specify should end up in this call.

BTW, instead of a .pollenrc file you probably want to run the server with a command-line flag where it absorbs the call.

Documentation of pagetree

The documentation of pagetree fails to explain how to actually build a tree of documents using .ptree files. There are some examples that define a pagetree using nested lists given explicitly, but I fail to figure out how to build a nested tree using .ptree files.

Next-Gen Blogging Platform?

Pollen post on Hacker News got my attention.
I could use this for an alternative blog site.

Is this feasible?
Is there facility for inserting header tags/snippets (for tracking, SEO, etc.) into the compiled file?

Will be watching progress.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.