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 CoffeeScript.
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
(v6.3.4#6332)