You are here

README.txt in Underscore.js 7.2

Same filename and directory in other branches
  1. 7 README.txt
UNDERSCORE
----------

This is a simple module that makes the Underscore.js JavaScript library
available to module and theme developers.


INCLUDED FUNCTIONALITY (or under development)
---------------------------------------------

* Makes Underscore.js available to other modules and custom code via the
  Library API

* Provides a drush command to download and install the latest version of the
  library


USE AND CONFIGURATION
---------------------

* After enabling this module, install the Underscore.js JavaScript file:

    * *Without drush:* Download underscore.js and store it in your
      libraries directory. In most cases the resulting path should be
      sites/all/libraries/underscore/underscore.js

    * *With drush:* Run the command `drush underscore-download`

* In your module code, add the library with libraries_load() and
  drupal_add_library(). If unsure where to do this, add it within an
  implementation of hook_init(). Use 'underscore' for both the module and
  library name arguments, like this:

      libraries_load('underscore');
      drupal_add_library('underscore', 'underscore');

* You can update your version of Underscore.js to the latest version by
  calling the drush command (drush underscore-download).

File

README.txt
View source
  1. UNDERSCORE
  2. ----------
  3. This is a simple module that makes the Underscore.js JavaScript library
  4. available to module and theme developers.
  5. INCLUDED FUNCTIONALITY (or under development)
  6. ---------------------------------------------
  7. * Makes Underscore.js available to other modules and custom code via the
  8. Library API
  9. * Provides a drush command to download and install the latest version of the
  10. library
  11. USE AND CONFIGURATION
  12. ---------------------
  13. * After enabling this module, install the Underscore.js JavaScript file:
  14. * *Without drush:* Download underscore.js and store it in your
  15. libraries directory. In most cases the resulting path should be
  16. sites/all/libraries/underscore/underscore.js
  17. * *With drush:* Run the command `drush underscore-download`
  18. * In your module code, add the library with libraries_load() and
  19. drupal_add_library(). If unsure where to do this, add it within an
  20. implementation of hook_init(). Use 'underscore' for both the module and
  21. library name arguments, like this:
  22. libraries_load('underscore');
  23. drupal_add_library('underscore', 'underscore');
  24. * You can update your version of Underscore.js to the latest version by
  25. calling the drush command (drush underscore-download).