[Checkins] SVN: hurry.resource/trunk/src/hurry/resource/README.txt Correct description of what to do in case of minified resources.

Martijn Faassen faassen at infrae.com
Wed Oct 15 13:13:04 EDT 2008


Log message for revision 92240:
  Correct description of what to do in case of minified resources.
  

Changed:
  U   hurry.resource/trunk/src/hurry/resource/README.txt

-=-
Modified: hurry.resource/trunk/src/hurry/resource/README.txt
===================================================================
--- hurry.resource/trunk/src/hurry/resource/README.txt	2008-10-15 16:54:27 UTC (rev 92239)
+++ hurry.resource/trunk/src/hurry/resource/README.txt	2008-10-15 17:13:03 UTC (rev 92240)
@@ -394,13 +394,15 @@
 larger one for optimization purposes. A library might only offer a
 minified version of a rollup resource; if the developer wants to
 debug, it is expected he uses the resources in non-rolledup format.
-In this case it is safe to make the default mode the minified version
-and to supply no minified version at all for the rolled up
-resource. If the developerw wants to debug, he will need to disable
-rolling up (by calling ``hurry.resource.rollup(disable=True)``, or by
-simply never calling ``hurry.resource.rollup()`` in the request
-cycle).
+In this case you should make a resource inclusion where the default
+mode is equal to the minified mode, like this::
 
+  >>> example = ResourceInclusion(foo, 'k.js', minified='k.js')
+
+If the developer wants to debug, he will need to disable rolling up
+(by calling ``hurry.resource.rollup(disable=True)``, or by simply
+never calling ``hurry.resource.rollup()`` in the request cycle).
+
 Mode convenience
 ================
 



More information about the Checkins mailing list