>
> I want to be able to define aliases for pages, and be able to do like
> `@link[the-alias]`. I noticed that i could use metas to implement this, so
> that's fine.
>
> I want to have a CLI command that outputs all the aliases and the files
> they refer to, as a way to remember the aliases. Ideal
Thank you, I think you answered all my issues. I will try it out.
The thing that worries me the most is the `racket a-pollen-file.html.pm`,
that seems like not the best way to try to treat a page as data. But I will
see how far I can go!
On Friday, May 10, 2019 at 4:44:04 AM UTC-4, Sorawee Por
You can also `(require "a-pollen-file.html.pm")` just like any Racket module.
Every Pollen source exports `doc`, which is an S-expression representing the
content of the document.
> On May 10, 2019, at 8:12 AM, Joel McCracken wrote:
>
> The thing that worries me the most is the `racket a-poll
Interesting, thank you. Will requiring the pollen file also have it output
the compiled file to the filesystem?
On Friday, May 10, 2019 at 11:30:22 AM UTC-4, Matthew Butterick wrote:
>
> You can also `(require "a-pollen-file.html.pm")` just like any Racket
> module. Every Pollen source exports `
No. That's what `render` is for.
> On May 10, 2019, at 7:45 PM, Joel McCracken wrote:
>
> Will requiring the pollen file also have it output the compiled file to the
> filesystem?
--
You received this message because you are subscribed to the Google Groups
"Pollen" group.
To unsubscribe from
Well, I have been working on this for a bit of time, and have a few
questions:
I have implemented a good portion of the link system I alluded to in my
earlier email (that is, I can specify aliases for pages and link to the
pages via those aliases, which are expanded). However, I have run into a
fe
> On May 26, 2019, at 11:11 PM, Joel McCracken wrote:
> I have a file build.rkt that first builds all of the possible destinations in
> a hash. However, I need to somehow access that data from the `link` tags I am
> making. Thing is, nothing I have tried works, except for writing the
> desti
Why not just construct the links "blind"? For example
(require net/uri-codec)
(define (section name . elements)
`(h2 [[id ,(uri-encode name)]] ,@elements))
(define (xref-link file id . elements)
`(a [[href ,(format "~a.html#~a" file id)]] ,@elements))
(The uri-encode is
On Mon, May 27, 2019 at 1:38 PM Matthew Butterick wrote:
Why doesn't it work to `provide` the hash of destinations from
> "pollen.rkt"?
>
I suppose I might be able to do that, but I don't think it will solve my
overall problem. `pollen.rkt` gets loaded/computed repeatedly, once per
page, so it
> On May 27, 2019, at 3:20 PM, Joel McCracken wrote:
>
> I suppose I might be able to do that, but I don't think it will solve my
> overall problem. `pollen.rkt` gets loaded/computed repeatedly, once per page,
> so it would lose context between pages. I would then have to re-compute it,
>
So yes this might be unnecessary. In my mind, the most efficient way to
implement what I want is to generate the references data up front, and then
render what I need with that data. So, basically I am using a two step
process, step one is analysis, step two is rendering.
Let me try to describe wh
> On May 27, 2019, at 5:24 PM, Joel McCracken wrote:
>
> The point is I was hoping to avoid having to rebuild the entire links table
> every time I process another file.
Here's a perhaps simpler way to do it that you could customize further.
The Pollen sources define metas for each target t
12 matches
Mail list logo