There is a way of creating separted files : to create a php parser
which detects jQuery.support tests, and generate the appropriated
file.
Here is a little example I create on-the-fly :

$ie7= array(
  'boxModel' => true,
  'goodBrowser' => false
);

function generateFile( $path, $browser ) {

  $content = file_get_contents( $path );
  foreach( $browser as $support ) {
     // will be jQuery.support.boxModel, then
jquery.support.goodBrowser
     $support = 'jQuery.support.' . $support;

     // We must implement the executeTest function
      $content = executeTest( $support, $content );

  }

   return $content;
}

file_put_contents( 'jquery-ie7.js', generateFile( 'jquery.js',
$ie7 ) );

Regards
Ludovic
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to jquery-dev@googlegroups.com
To unsubscribe from this group, send email to 
jquery-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to