Ask A Question

Notifications

You’re not receiving notifications from this thread.

How to create Custom Elements with Web Components Discussion

Interesting topic. Thanks for sharing!

Curious to see more examples. Chris, do you use any web components for GoRails or Jumpstart Pro?

Reply

Hey Chris,

I'm working with this right now and i've gone quite deep down the road to implement this. Glad you added the turbo stream logic there. I was still puzzling on how that one worked :). However i don't like having my javascript cluttered with HTML or most of the logic that creates the tags there. What would your approach be to keep the HTML out of the javascript so that one can keep my neat syntax hightlighting as well as ERB parsing alongside a proper seperation of concerns?

I've succesfully done so until i bumped into I18n. Which complicated the matter :D

Curious how you would

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 86,946+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.