Re: skin

Stefan Rinner <[email protected]>
Newsgroups gmane.comp.java.helma.general
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.