automaticly load css and js files from css and script folders into the current template if they exists.

using drupal_add_css($f, "theme", "screen", true); and drupal_add_js($f, "theme"); functions on autofiles_preprocess_page() hook

like node-contenttype.tpl.php systeme, autofiles look for files schemes based on :

q : ex style-node.css, style-node-28.css, script-taxonomy.js, etc

url alias : using drupal_get_path_alias($_GET['q']) depending on path module
ex style-my-current-pass.css or/and script-my-current.js for my/current/pass

for css files look for two type of css files screen and print
ex : style-node.css and style-node-print.css
drupal_add_css($f, "theme", "screen", true);
drupal_add_css($f, "theme", "print", true);


schemes for front
Array
(
    [0] => Array
        (
            [0] => front
        )

)
search for : style-front.css, style-front-print.css, script-front.js, page-front.tpl.php

for a blog content type node whith "ouvertures/how-draw-cristals" alias
Array
(
    [0] => Array
        (
            [0] => node
            [1] => node-blog
            [2] => node-nid-50
            [3] => node-uid-3
        )

    [1] => Array
        (
            [0] => 2-args
            [1] => *
            [2] => ouvertures
        )

    [2] => Array
        (
            [0] => *-*
            [1] => *-how-draw-cristals
            [2] => ouvertures-*
            [3] => ouvertures-how-draw-cristals
        )

)
look for files look likes all this schemes apply to style-[sheme].css, style-[sheme]-print.css, script-[sheme].js, page-[scheme].js

ALL files founded are loaded in order of precedent array

In the future :
add language support : style-fr-[scheme].css
add settings in drupal theme settings pages like activation by theme, selection of scheme type, selection of file type js and/or css (screen and/or print)
create automaticly scripts and styles folder on theme folders who use autofiles

