Skip to content

Support for @resource access in processors#161

Merged
eelcoj merged 1 commit intomainfrom
resource-to-markdown
Mar 10, 2026
Merged

Support for @resource access in processors#161
eelcoj merged 1 commit intomainfrom
resource-to-markdown

Conversation

@eelcoj
Copy link
Contributor

@eelcoj eelcoj commented Mar 10, 2026

Closes #62

Processors have now implicitly access to the @resource class. This has many use cases, for example:

  • build utm params with frontmatter data
  • pass what partial to inject using the inject html processor
  • conditionally enable/disable processing per resource

If you do not use the conventional @resource, you can pass your resource object to the markdownify helper, e.g. resource: @post.

Closes #62

Processors have now implicitely access to the `@resource` class. This
has many use cases, for example:

- build utm params with frontmatter data
- pass what partial to inject
- conditionally enable/disable processing per resource

If you do not use the conventional `@resource`, you can pass your
resource object to the markdownify helper, e.g. `resource: @post`.
@eelcoj eelcoj merged commit ecd7f27 into main Mar 10, 2026
3 checks passed
@eelcoj eelcoj deleted the resource-to-markdown branch March 10, 2026 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Explore adding @resource to the html processors

1 participant