Re: skin
Michael Platzer <[email protected]>
| Newsgroups | gmane.comp.java.helma.general |
|---|---|
| Message-ID | <[email protected]> |
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
_______________________________________________
Helma-user mailing list
[email protected]
http://helma.org/mailman/listinfo/helma-user