Using Temple in LiveView's without colocated templates #111
mhanberg
started this conversation in
Show and tell
Replies: 1 comment
-
I created a little example repo that uses the above code for LiveViews but also for LiveComponents. (There were no changes needed to get it to work with LiveComponents.) Here's the repo if anyone's interested: https://github.com/eahanson/temple_components |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If you'd like to use Temple in a live view directly (as in, you write your Temple template code directly in the live view module, not in a colocated template file), you can use this pattern until something more official is baked into the library itself.
https://gist.github.com/mhanberg/c564703fa31a91464ad948e0dd846269
Beta Was this translation helpful? Give feedback.
All reactions