-
Notifications
You must be signed in to change notification settings - Fork 120
Implicit defaults for rendering formats in node .erb templates #4510
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This implicit behaviour of different rendering default for different named Some named content must be a specific format (e.g. I feel like there's a larger issue around trying to put multiple formats in erb template and whether thats the most appropriate way of specifying content. |
@theseanything I've opened up a draft PR to propose an approach: #4527 Revising on my earlier suggestion I felt we didn't need the word content and could go with rather succinct I don't think it covers all the concerns you've had though, but hope you think of it as an improvement. |
Closing as we've settled on |
Uh oh!
There was an error while loading. Please reload this page.
A review comment in PR #4502 discussed that different default rendering behaviours for the
render_content_for
method with node templates may results in confusion as to what format content should be written in.It was suggested that we could add multiple methods e.g:
govspeak_content_for
text_content_for
html_content_for
to be explicit in the type of content required.
The text was updated successfully, but these errors were encountered: