You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org> on 2011/09/01 18:54:09 UTC

[jira] [Resolved] (TAP5-1625) RubyonRails-like Asset Pipeline

     [ https://issues.apache.org/jira/browse/TAP5-1625?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship resolved TAP5-1625.
----------------------------------------

    Resolution: Invalid
      Assignee: Howard M. Lewis Ship

Tapestry 5.3 already has the key components of this, of course its not implemented the same way. Tapestry has JavaScript aggregation (since 5.1, and improved in 5.2), and in 5.3 adds ResourceTransformer that allow dynamic conversion of files from one type to another (such as CoffeeScript to JavaScript). In addition, there's now direct support for use of YUICompressor (as a ResourceMinimizer).

It's a bit different than Rails, in that your code references the resource, and Tapestry uses configuration to determine how to convert it into simple JS and CSS for the client.  In Rails, you add additional file extensions to guide Rails on how to transform the resource, and (I believe), JS aggregation is done at build time, not runtime.

> RubyonRails-like Asset Pipeline
> -------------------------------
>
>                 Key: TAP5-1625
>                 URL: https://issues.apache.org/jira/browse/TAP5-1625
>             Project: Tapestry 5
>          Issue Type: Wish
>          Components: tapestry-core
>            Reporter: Toby
>            Assignee: Howard M. Lewis Ship
>            Priority: Minor
>
> see:
> http://weblog.rubyonrails.org/2011/5/22/rails-3-1-release-candidate
> "The Asset Pipeline
> The star feature of 3.1 is the asset pipeline powered by Sprockets 2.0. It makes CSS and JavaScript first-class code citizens and enables proper organization, including use in plugins and engines. See my RailsConf keynote for a full tour. This comes with SCSS as the default for stylesheets and CoffeeScript as the default for JavaScript. Much documentation is on the way for this."
> http://www.youtube.com/watch?v=cGdCI2HhfAU
> something like this would be nice in Tapestry - at least a way to automatically generate a single JS file to increase load speed would be important as a core-feature.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira