Polymer Rails

screenshot of Polymer Rails

Polymer and web components for Ruby on Rails

Overview

Polymer-rails is an innovative solution for Ruby on Rails developers who want to seamlessly integrate web components into their applications. By providing a straightforward approach to leveraging the Polymer library, this gem allows users to build custom components and efficiently utilize community-developed options, enhancing both functionality and user experience in web projects.

With features designed to simplify the import and management of web components, polymer-rails stands out as a valuable tool for developers. Whether you're utilizing SASS or CoffeeScript for your asset management, this gem supports a smooth workflow, allowing developers to focus on creating rather than configuring.

Features

  • Easy Library Integration: Polymer-rails adds the Polymer library to the assets of your Rails project, allowing for immediate use of web components.
  • Simple Import Helpers: Use the <%= html_import_tag "my-component" %> to easily import web components into your views.
  • Asset Pipeline Compatibility: Web components can be imported and packaged with your Rails asset pipeline, similar to how JavaScript and CSS are handled.
  • SASS and CoffeeScript Support: Seamlessly integrate external stylesheets and scripts while benefiting from asset compilation using SASS or CoffeeScript.
  • Component Generation Made Easy: With generators that create the necessary file structure for new components, you can quickly set up both the HTML and associated JavaScript/CSS.
  • Version Compatibility: Clearly defined versioning guides ensure that you can work with the appropriate polymer-rails version depending on the Polymer version you are using.
  • Vendor Component Support: Facilitate the use of third-party web components by managing them within the vendor/assets/components directory.
  • Community Resources: Access a wealth of community-built components and resources through linked websites to enhance your development experience.