current-pagenode in metas #167

Closed
opened 6 years ago by jlorieau · 2 comments
jlorieau commented 6 years ago (Migrated from github.com)

The 'here-path' string is included in the metas hash table. The 'here-path' is an absolute path. However, to use this path as a pagenode for querying against the current pagetree, the user must strip the path up to the current project directory, possibly change the extension and convert the string to a symbol.

In this issue, I am suggesting adding a 'here-pagenode' or 'current-pagenode' entry in the metas hash table with a pagenode (symbol) for the current target pagenode.

The 'here-path' string is included in the `metas` hash table. The 'here-path' is an absolute path. However, to use this path as a pagenode for querying against the current pagetree, the user must strip the path up to the current project directory, possibly change the extension and convert the string to a symbol. In this issue, I am suggesting adding a 'here-pagenode' or 'current-pagenode' entry in the `metas` hash table with a pagenode (symbol) for the current target pagenode.
mbutterick commented 6 years ago (Migrated from github.com)

What’s the difference between path->pagenode and what you describe?

What’s the difference between [`path->pagenode`](https://docs.racket-lang.org/pollen/Pagetree.html?q=path-%3Epagenode#%28def._%28%28lib._pollen%2Fpagetree..rkt%29._path-~3epagenode%29%29) and what you describe?
jlorieau commented 6 years ago (Migrated from github.com)

Thanks for the note. I wasn't aware of this function, and it appears to workup the here-path nicely. A convenience entry in metas may still be useful to users, but the workup is fairly trivial with page->pagenode.

Thanks for the note. I wasn't aware of this function, and it appears to workup the here-path nicely. A convenience entry in `metas` may still be useful to users, but the workup is fairly trivial with `page->pagenode`.
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: mbutterick/pollen#167
Loading…
There is no content yet.