NAME
    JavaScript::MochiKit - JavaScript::MochiKit makes Perl suck less

SYNOPSIS
        #!/usr/bin/perl

        use strict;
        use warnings;
        use JavaScript::MochiKit;

        JavaScript::MochiKit::require('Base', 'Async');

        print JavaScript::MochiKit::javascript_definitions;

DESCRIPTION
FUNCTIONS
  JavaScript::MochiKit::require( @classes )
    Loades the given MochiKit classes and also their required Javascript
    code. Returns 1 on success, dies on error.

  JavaScript::MochiKit::require_all( )
    Loades all MochiKit classes and also their required Javascript code.
    Returns 1 on success, dies on error.

  JavaScript::MochiKit::javascript_definitions( @classes )
    Returns the Javascript code as one big string for all wanted classes.
    Calls JavaScript::MochiKit::require( ) for all classes that are not
    loaded yet.

    Returns the Javascript code for all loaded classes if @classes is empty.
    Returns an empty string if no class is loaded.

METHODS
SEE ALSO
    Catalyst

    <http://www.catalystframework.org>, <http://www.mochikit.org>

AUTHOR
    Sascha Kiefer, "esskar@cpan.org"

LICENSE
    This library is free software, you can redistribute it and/or modify it
    under the same terms as Perl itself.

