Skip to content

Conversation

@robvandenbogaard
Copy link
Contributor

This adds template values for including the json representation of resources (in javascript), via the m_ginger_rest model.

It is meant for directly passing the resource content data to the initialisation of javascript apps/components (e.g. when integrating Elm), so it does not need to perform an extra XHR request for it.

It should reduce transient (network request) trouble with search engine crawlers.

@robvandenbogaard robvandenbogaard self-assigned this Oct 31, 2025
@robvandenbogaard robvandenbogaard changed the title [Ginger REST] Add model values for including resource json in templates DRAFT: [Ginger REST] Add model values for including resource json in templates Oct 31, 2025
Copy link
Contributor

@M-Skipemski M-Skipemski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good addition

@robvandenbogaard robvandenbogaard changed the title DRAFT: [Ginger REST] Add model values for including resource json in templates [Ginger REST] Add model values for including resource json in templates Nov 7, 2025
@robvandenbogaard robvandenbogaard merged commit 880bf80 into master Nov 7, 2025
1 check passed
@robvandenbogaard robvandenbogaard deleted the ginger-rest-json-for-templates branch November 7, 2025 13:48
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.

3 participants