Has anyone used the RenderIfDefined module? #1479
-
Lucky's page include this method called lucky/src/lucky/page_helpers/render_if_defined.cr Lines 1 to 7 in 79e7108 Has anyone actually used it? It seems like a problem that has better solutions. I'm thinking about removing it |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I actually didn't know it was available until the latest "Learn" PR for the Lucky Website where Jeremy used it! I do think there are some great applications for things like help messages or tutorial-style content, and I want to experiment with a generic modal container that I could only render if the page has |
Beta Was this translation helpful? Give feedback.
-
Yeah, we use it in our apps. It's also used in the Lucky website. We have it documented as well https://luckyframework.org/guides/frontend/rendering-html#using-render_if_defined-in-layouts-for-optional-content I haven't seen any issues with this, is there something specific you're seeing that we should change? |
Beta Was this translation helpful? Give feedback.
Yeah, we use it in our apps. It's also used in the Lucky website. We have it documented as well https://luckyframework.org/guides/frontend/rendering-html#using-render_if_defined-in-layouts-for-optional-content
I haven't seen any issues with this, is there something specific you're seeing that we should change?