Polymer Rails

screenshot of Polymer Rails

Support for Polymer-enabled web components in Rails

Overview

The polymer-rails project is an exciting initiative that aims to seamlessly integrate Polymer components into Ruby on Rails applications. Despite being in the alpha stage, it offers a cutting-edge framework for developers eager to embrace modern web technologies. If you're looking to enhance your Rails project with powerful web components and are comfortable navigating the potential bumps of early-stage software, this could be a fantastic opportunity.

Setting up polymer-rails can quickly transform your development experience. With a unique directory structure tailored for Polymer, it encourages a clean and efficient organizational layout for your components. While there are a few quirks, such as the elimination of jQuery and Turbolinks, these changes promote a more streamlined interaction with the DOM, fostering a purer web component development environment.

Features

  • Modified Directory Structure: Projects use a new organization model, putting all web components in app/components, improving clarity and asset management.
  • Vendor Asset Management: Third-party components are stored in vendor/assets/components, providing an organized way to handle dependencies via Bower.
  • Asset Manifest Flexibility: Users can either combine asset manifests into one directory or keep them separate, depending on their project's needs.
  • Component Generator: A built-in generator simplifies the creation of new components, allowing for quick scaffoldings such as defining properties.
  • No jQuery or Turbolinks: The framework encourages developers to interact directly with the DOM, avoiding unnecessary abstractions and promoting more efficient coding practices.
  • Support for Slim Templates: If you're using slim-rails, polymer-rails conveniently supports slim templates, enhancing your development flexibility.
  • Configuration Options: Easily customizable via config/initializers/polymer.rb, allowing users to tailor settings to best fit their projects.

In summary, polymer-rails stands out as a pioneering solution for those ready to explore the modern capabilities of web components in their Rails applications.