[Helma-user] skin

Stefan Rinner rist at mac.com
Sat Mar 31 19:31:50 CEST 2007


On Mar 31, 2007, at 6:41 PM, Michael Platzer wrote:

> hi,
>
> is there an easy way to detect whether a certain skin is defined
> (considering res.skinpath, inheritance, etc.)?
> right now, i render the skin as string and check whether it has a  
> length
> of 0, which is kind of awkward.

I'm using something like this (I'm using Juergs templates and Helma  
skins within one app):

HopObject.prototype.getSkin = function( skin ) {
	return this.getResource( skin + ".skin" ) || this.getResource( skin  
+ ".jstl" );
}

- stefan


More information about the Helma-user mailing list