never gonna give you up - #837
Replies: 2 comments
-
|
When rendering Phlex from ERB, you should use it more like this. <%= render Components::Text.new do %>
<span>write some text and part of it will be</span>
<strong>strong</strong>
<span>and some even</span>
<%= render Components:TextStrong.new do %>
STRONGER
<% end %>
<% end %>The block passed in will be treated by Phlex as if it was an ERB block, not a Phlex block. |
Beta Was this translation helpful? Give feedback.
-
|
I erred when digesting https://beta.phlex.fun/handbook/under-the-hood.html effectively reasoning the @buffer to be "carried forward" in a way that would allow me to keep adding to the buffer from component, its 'children', ad infinitum - my apologies That, however, begs the question: how does one structure a "dynamic" set of components, perhaps eval'ed at runtime - read: action_text kind'a input with markdown or liquid of sorts 🤔 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I know what it sounds like - but no, I'm not rick-rolling you 🤣
Anticipating 2.0 I've decided to try lining up early to the party gettin' a feel for the amount of work awaiting me in order to rewrite my app for 2.0 - but I don't know, it's like this
@buffernever sinks in with me (remember the form_with and friends issue of "Christmas Past") so what do you say - got one more for the old Man?Say I'd like to "write some text and part of it will be strong and some even STRONGER" (it's a lot more complex and ambitious than that but I reckon this will suffice to get me 'cross)
Reading the new https://beta.phlex.fun/ from
doctypeto</html>I figured I could do something likeusing
- but ah-no!
If I do
I can have 'strong' (as a small token of appreciation for all my elephantizing-the-glass-store
So - there's the lay of the land - but you gotta' give me some credit for sticking with Phlex for all this time
😅 not knowing what the f* I'm doing 😎
Beta Was this translation helpful? Give feedback.
All reactions