将 YUI 3 合并到 Rails 中

发布于 2025-01-07 17:47:23 字数 308 浏览 5 评论 0原文

我想知道是否为将 YUI3 与 Rails 资产管道集成做出了任何努力。

通过集成,我不仅仅指几个用于包含库的帮助程序,而是指 YUI 模块加载器的完整集成。

我将详细阐述这个想法:

  • 目前,使用 YUI 开发模块的开发人员依赖 Ant 任务来连接模块组件并将它们与一些关联的元数据包装在一起并生成目标文件(以及可选的缩小和运行 jslint)。
  • 此外,在获取模块时,YUI 加载器会计算模块依赖项并生成一个包含页面中尚未包含的所有依赖项的单个文件。我想知道整个功能是否可以无缝集成到 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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文