Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Incorporation of YUI 3 in rails

I was wondering if any effort has been made towards integration of YUI3 with rails asset pipeline.

By integration, I don't just mean a couple of helpers for including the library but rather a complete integration of YUI module loader.

I'll elaborate the idea in detail:

  • Currently, developers developing modules using YUI rely on Ant tasks for concatenating the module components and wrapping them up with some associated metadata and generating target files ( and optionally minifying and running jslint).
  • Also, when fetching the modules, the YUI loader calculates the module dependencies and generates a single file comprising of all the dependencies which havent been included already in the page. I was wondering if the whole functionality could be seamlessly integrated into the Asset pipeline of rails.
like image 253
lorefnon Avatar asked Feb 21 '12 07:02

lorefnon


1 Answers

  • Shifter: blazingly fast yui builder
  • YUI-rails: No-hassle integration of YUI with the Rails 3.1 asset pipeline.
  • A bunch of helpers

Shifter is DIY, but at least you can stop using Ant for concat.

like image 168
Jonas G. Drange Avatar answered Sep 28 '22 05:09

Jonas G. Drange