Jellyfish

Why Jellyfish?

I kept running into situations where I wanted to create a relatively simple web site that had many static pages and a small amount of scripting on each. Previously, I would have to create a separate .js file for each static page, then loading each different .js file from each .html file.

Instead of worrying about all of these different .js files for a small amount of scripting, I created Jellyfish. This way, I can write a single .js file that controls all of the scripting across the site, partitioned by page (or sets of pages). I can include the single .js file in my layout file and avoid the headache of managing myriad .js files. Isn't that nice?


An Example

Jellyfish(function () {
  this.bloom('/about', function () {
    this.sting('#header/click', function (evt) {
      alert("Hi there.");
    });
  });
});

On the page with the URL /about, find the element matching the #header selector and install a click event listener.

This guide will walk you through the basics of creating a web application with some of these features. If you aren't sure where to start after reading this guide, check out the Platform showcase for inspiration from other sites.


Contents