[Helma-user] skin
Stefan Rinner
rist at mac.com
Sat Mar 31 22:05:59 CEST 2007
On Mar 31, 2007, at 9:35 PM, Michael Platzer wrote:
> 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.
I'm not using the res.skinPath feature currently so I'm not sure if
my online looks there as well
- stefan
More information about the Helma-user
mailing list