Skip to content
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

Feature suggestion: More helper functions for rendering #85

Open
jrosell opened this issue Jan 4, 2025 · 1 comment
Open

Feature suggestion: More helper functions for rendering #85

jrosell opened this issue Jan 4, 2025 · 1 comment

Comments

@jrosell
Copy link

jrosell commented Jan 4, 2025

In my experimental project ambtmx, I end up doing some rendering helper functions that might make things easier for other prople too. We could include some of them if you want. https://github.com/jrosell/ambhtmx/blob/main/R/rendering.R

@jrosell jrosell mentioned this issue Jan 4, 2025
@jrosell jrosell changed the title Feature suggestion: More helper funtions for rendering Feature suggestion: More helper functions for rendering Jan 4, 2025
@kennedymwavu
Copy link
Contributor

thanks for this!

a most notable function in {ambhtmx} is render_html(): allows you to render without requiring an explicit html template.
we've been discussing this with @JohnCoene and we saw a need for such functionality in ambiorix. so we will definitely find a way to incorporate your findings.

main condition will be:

  • ensure correct placement of header tags (metatags, css, js). this will avoid issues like css being unintentionally included inline, causing "jumpy" behavior as it loads in the browser.

this will also ensure a smooth transition for those who are already familiar with {htmltools} ie. no overhead of having to learn about html templates when {htmltools} handles all the dynamic generation of html.

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

No branches or pull requests

2 participants