tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jochen Kemnade (JIRA)" <j...@apache.org>
Subject [jira] [Created] (TAP5-2493) ResourceTransformers should be easily chainable
Date Wed, 26 Aug 2015 11:57:45 GMT
Jochen Kemnade created TAP5-2493:

             Summary: ResourceTransformers should be easily chainable
                 Key: TAP5-2493
                 URL: https://issues.apache.org/jira/browse/TAP5-2493
             Project: Tapestry 5
          Issue Type: Improvement
            Reporter: Jochen Kemnade

I want to write React classes in CJSX. That's a CoffeeScript "dialect" that transpiles to
I created a ResourceTransformer for cjsx->coffeescript. But Tapestry is not smart enough
to know that the coffeescript->javascript transformation step must be performed afterward.
So I need to inject a secondary ResourceTransformer into the first one that does that transformation.
and returns the overall result. That feels too complicated.
I guess, there should be a transformation configuration, where I specify that CJSX files should
ultimately be served as JavaScript and some kind of master transformer should be able to find
its way.
An easier approach could be a ChainedResourceTransformer class that is manually created with
the necessary information.

This message was sent by Atlassian JIRA

View raw message