docpad-plugin-iconmonstrtipsy

Eco iconmonstr SVG icons as functions for Docpad via getBlock() codes, plus a tooltip argument!

iconmonstr + tipsy for DocPad

Install: docpad install iconmonstrtipsy

Function: getIconmonstrTipsyBlock(iconName,'iconId,iconClass,tipsy`)

Real world example: <%- @getIconmonstrTipsyBlock('globe','iconmonstr-head-id','cool-class','data-placement="right" data-content="Some more content here. This is my second tooltip."') %>

Have the following in your /scripts/script.js file or in it's own YUI javascript file:

YUI({
        gallery: 'gallery-2013.03.27-22-06'
    }).use('gallery-tipsy','gallery-popover', function (Y) { 
        //Y.Popover is loaded and good to go.
 
     var tipsy = new Y.Tipsy({
        selector: "[rel='tipsy']"
    });
 
    tipsy.render(); 
});

YUI 3 is a dependency for this plugin so no need to also load YUI as a script in docpad.coffee's scripts: [] or otherwise.