I’m trying to come up with a way to use polymer with Rails, but there isn’t much out there on the subject.
The only problem is, I have no idea where to start on developing this. Is this something people want to see, and does anybody have any pointers on how to get started?
So far, I’ve asked a question on StackOverflow that is really basic, but it received any answers.
Anyway, your thoughts are appreciated.
Perhaps look at the jquery-ui-rails gem - It’s similar in that you say which components you want and it includes the dependencies for you (you do have to repeat this for both css and js though).
You’ll probably want to look into sprockets too, since that is what is behind the asset pipeline.
Yeah, I’ve been looking at the sprockets source. I need to come up with a way of creating a new type of manifest file to load the web components.
//= require "whatever, I need an application.html with `. Then sprockets needs to create an html import for each file specified in the manifest.
Unfortunately, I really have no idea where to begin. I’ll keep reading the sprockets source, but its way over my head. Thanks for your input, though.
Actually there is a ruby gem, which allows you to create Web Components
in RoR application using Polymer