tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Taha Hafeez Siddiqi <tawus.tapes...@gmail.com>
Subject A different way to @Import resources
Date Wed, 02 Nov 2011 16:47:57 GMT
Dear all

Tapestry has a short coming when it comes to overriding resources. I recently worked on a
wordpress plugin and found their method of resource import to be quite useful. 

You register a resource with a name

wp_register_script("name", "path");

Then you include it using

wp_enqueue_script("name");

using the same way we can have a service for registering a resource 

configuration.add("name", "path");

then import it

@Import("name")

The advantages are :- 

1) You can override the configuration and so can override any resource.

2) You can order the scripts


I have not perceived the idea but thought of getting some feedback 

regards
Taha


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


Mime
View raw message