[Helma-user] skin
Michael Platzer
michael.platzer at knallgrau.at
Sat Mar 31 21:35:48 CEST 2007
Stefan Rinner schrieb:
>> 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" );
> }
>
thanks a lot! that one-liner was exactly what i was looking for.
michi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://helma.org/pipermail/helma-user/attachments/20070331/ab787449/attachment.html
More information about the Helma-user
mailing list