Latest commit for jMod and libraries is b9e828dd3389b00a47428e49d940d282f5ba0040.
Install
Just copy this code into your page to install the latest version:
<script type="text/javascript" src="http://js.thisismedium.com/min/b9e828dd3389b00a47428e49d940d282f5ba0040/jmod.js"> </script>
The above script will install jMod along with a special "lib"
module which makes all of these modules
available to your site. Other options for installing:
-
download jmod.js
(or the
minified version), the modules implementation without any of
these hosted modules.
-
download jMod with any of these hosted
modules built in by going to libraries
and selecting which libraries you want included.
You will want to call jMod.config to configure it. jMod.config
takes a dict and respects the following key/values:
- path - sets the path for local modules (default: "/js")
- debug - turns debug mode on or off
(default: false). If in debug mode, no optimizations will
be made on libraries (like minifying) so that debugging works.
Django
Alternatively, here's a default setup if you are using django,
/media/js as your path, and using the
django.core.context_processors.debug (default).
<script type="text/javascript" src="http://js.thisismedium.com/min/b9e828dd3389b00a47428e49d940d282f5ba0040/jmod.js">
</script>
<script type="text/javascript">
jMod.config({
path: '/media/js',
debug:
{%
if debug
%}
true
{%
else
%}
false
{%
endif
%}
});
</script>