Differences between revisions 3 and 5 (spanning 2 versions)
Revision 3 as of 2007-03-25 10:45:19
Size: 4543
Editor: 219-88-173-27
Comment:
Revision 5 as of 2009-09-20 22:06:11
Size: 1896
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 6: Line 6:
 *  * 
Line 25: Line 25:
 *  * 
Line 55: Line 55:
*# *# 
Line 92: Line 92:
 [http://combined.angelcities.com/60.html webcam exhibitionist] | [http://crawlspace.kogaryu.com/69.html nipple celeb] | [http://icelander.150m.com/87.html horny teen daughters] | [http://balloons.angelcities.com/39.html bj bear mpg] | [http://homepage.mac.com/knows1/14.html ukrainian sexy dating] | [http://huskies.bravepages.com/72.html cum shot babes] | [http://unpile.1sweethost.com/27.html public nudity contest] | [http://isotherms.741.com/29.html celebrity sex video] | [http://homepage.mac.com/impasto1/52.html thong webcam pics] | [http://attiring.kogaryu.com/41.html nude couples smoking] | [http://embosses.angelcities.com/20.html mike butt images] | [http://fibbed.150m.com/48.html webcam strip video] | [http://futurisms.o-f.com/2.html college student webcam] | [http://persons.freecities.com/73.html lesbian women kissing] | [http://preemies.wtcsites.com/5.html dog chewing feet] | [http://rotations.angelcities.com/70.html teenie with mature] | [http://gasolines.envy.nu/75.html orgy porn pictures] | [http://deodorized.envy.nu/12.html lesbo beach sex] | [http://homepage.mac.com/hide94/61.html bum hunter clips] | [http://emotional.o-f.com/43.html women big butt] | [http://induct.9cy.com/68.html webcam driver 3megacam] | [http://homepage.mac.com/knows1/33.html sexy smoking clip] | [http://chatterer.1sweethost.com/37.html gagging blow job] | [http://homepage.mac.com/banality1/73.html voyeur exhibitionists] | [http://homepage.mac.com/dilatory/51.html webcam gangbang] | [http://hotseat.angelcities.com/34.html free xxx sites] | [http://homepage.mac.com/liffey1/38.html hegre art shemale] | [http://unpile.1sweethost.com/22.html girl naked masturbating] | [http://paramecium.100freemb.com/19.html woman masturbating video] | [http://syllable.ibnsites.com/42.html anal sex webcam] | [http://saber.100freemb.com/62.html fishers mmf threesomes] | [http://leafstalks.741.com/19.html fat black nude] | [http://enchanted.dreamstation.com/55.html reality sex teens] | [http://eats.angelcities.com/88.html yahoo webcam teens] | [http://homepage.mac.com/atheneum1/13.html free xxx vids] | [http://homepage.mac.com/shockable/17.html ffm sex videos] | [http://hightail.exactpages.com/40.html loony sex toon] | [http://careering.exactpages.com/73.html old granny running] | [http://elfish.ibnsites.com/61.html webcam girls documentary] | [http://in.freecities.com/76.html sexy blond xanga] | [http://airwomen.fcpages.com/87.html puredee webcam pics] | [http://icelander.150m.com/50.html schoolgirl up skirt] | [http://solders.freewebsitehosting.com/79.html tgirl monster] | [http://homepage.mac.com/keepings/95.html teenager birthday cakes]

A collection of Velocimacros of a non-web nature that may be useful in *any* Velocity application. These may make use of the VelocityTools' Generic tools.


#**
 * For displaying an alternate value when the primary one is "null".
 * 
 * @param the primary variable
 * @param the alternate value or variable
 * @author <a href="mailto:nathan@esha.com">Nathan Bubna</a>
 *#
#macro( altnull $variable $alternate )
#if( "$!variable" == "" )$!alternate#else$variable#end##
#end

#**
 * For truncating a variable's output at a specific length.
 *
 * Usage:
 *   "#truncate( 'this is too long' 10 )" -> "this is to..."
 * 
 * @param the variable to be truncated
 * @param the length of the output (not including the ellipses!)
 * @author <a href="mailto:nathan@esha.com">Nathan Bubna</a>
 *#
#macro( truncate $stringVariable $length )
#set( $truncateMe = "$!stringVariable" )
#if( $truncateMe.length() <= $length)$truncateMe#else$!{truncateMe.substring(0,$length)}...#end##
#end

#**
 * Convenience directive to invoke a method and ignore the return value.
 *
 * Usage:
 *    #call( $hashtable.put("foo", "bar") )
 *
 *#
#macro( call $foo )#if($foo)#**##end#end

#*
 * Convenience macro to return "unknown" if null value
 * @author Ted Husted
*# 
#macro (unknown $name $code)
    #if($code )
        $!name [$code]
    #else
        <i>Unknown</i>
    #end
#end

#*
 * Convenience macro to return "Not Specified" if null value
 * @author Ted Husted
*#
#macro (notSpecified $value)
    #if($value )
        $value
    #else
        <i>Not Specified</i>
    #end
#end

#*
 * Convenience macro to return "Pending" if null value
 * @author Ted Husted
*#
#macro (pending $value)
    #if($value )
        $value
    #else
        <i>Pending</i>
    #end
#end

VelocityGenericMacros (last edited 2009-09-20 22:06:11 by localhost)