Skip to content

rest plugins should know which page is being compiled #1388

Closed
@aurelien-naldi

Description

I want to access some of the metadata of the current page from a rest plugin and I can't find a way to get the current page in self.state.

I found out that by adding a reference to the "source" path when calling the rest compiler, I can retrieve it as self.state.document.settings._source, then find a matching page. Is it a good solution? Could this (or something similar) be integrated in the default rest compiler?

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions