Plugins

The plugins site is currently in development.

We've been looking to provide a higher-quality, spam-free experience at the plugins site for some time, and a major error on our part forced us to shut down the current site before we could put the new one in place. We are developing a new site, and you can follow along with its development on GitHub. For more information about this transition, including steps you can take as a plugin author to prepare, please read our post about what's going on.

render


XML Wrapper

XML Wrapper

This is a very simple-minded jquery utility plugin to wrap XML into <span />s that can be subsequently displayed, styled, selected and bound. It scratches my need of displaying and manipulating XML, YMMV.

I'm placing this into public domain, so feel free to modify if it doesn't meet your needs.

Tempest jQuery Templating Plugin

Tempest jQuery Templating Plugin

Copyright (c) 2009 Nick Fitzgerald - http://fitzgeraldnick.com/ - MIT licensed

Note: All releases are minified, to get the latest development version grab a
clone from http://github.com/fitzgen/tempest/tree/master

HELLO WORLD

$(document).append(
    $.tempest("<p>Hello, {{ name }}!</p>", {
        name: "World"
    })
);

PHILOSOPHY

I was not satisfied with the other templating plugins available, so I wrote my
own. This templating system is very simple and enforces the separation of form
and function, or HTML and JS. This provides a great abstraction layer so that
you can write a template and then promptly remove the mental overhead of
rendering js objects to HTML.

Other templating languages just build and execute function blocks with
strings. Any type of js logic you could want is included and evaluated. For some
people, this may be the freedom that they want.

On the other hand, Tempest will only fill in values and iterate over arrays for
you. This forces you to remove any programming logic from the templates and
separate form from function. This type of templating philosophy can also be seen
in the Django templating language.

The other big thing, for me, is that iteration is handled seamlessly. Just pass
an array of objects to tempest instead of a single object and it will return a
jquery element array.