atom feed55 messages in org.apache.incubator.sling-devRe: Simplifying script paths and names?
FromSent OnAttachments
Bertrand DelacretazApr 14, 2008 8:45 am 
Carsten ZiegelerApr 14, 2008 9:11 am 
Alexander KlimetschekApr 14, 2008 9:25 am 
Carsten ZiegelerApr 16, 2008 1:00 am 
Bertrand DelacretazApr 16, 2008 5:43 am 
Carsten ZiegelerApr 16, 2008 5:52 am 
Felix MeschbergerApr 16, 2008 8:11 am 
Carsten ZiegelerApr 16, 2008 9:09 am 
Carsten ZiegelerApr 16, 2008 11:20 pm 
Bertrand DelacretazApr 17, 2008 12:00 am 
Gert VanthienenApr 17, 2008 12:49 am 
Juanjo VázquezApr 17, 2008 1:33 am 
Alexander KlimetschekApr 17, 2008 1:48 am 
Michael MarthApr 17, 2008 6:39 am 
Bertrand DelacretazApr 18, 2008 12:21 am 
Bertrand DelacretazApr 18, 2008 12:24 am 
Felix MeschbergerApr 18, 2008 12:56 am 
Michael MarthApr 18, 2008 1:33 am 
Bertrand DelacretazApr 18, 2008 1:36 am 
Bertrand DelacretazApr 18, 2008 1:43 am 
Felix MeschbergerApr 18, 2008 2:10 am 
Bertrand DelacretazApr 18, 2008 2:16 am 
Felix MeschbergerApr 18, 2008 4:18 am 
Carsten ZiegelerApr 18, 2008 4:59 am 
Felix MeschbergerApr 18, 2008 5:54 am 
Bertrand DelacretazApr 18, 2008 5:58 am 
Felix MeschbergerApr 18, 2008 6:16 am 
Bertrand DelacretazApr 18, 2008 6:19 am 
Carsten ZiegelerApr 18, 2008 6:21 am 
Felix MeschbergerApr 18, 2008 6:45 am 
Carsten ZiegelerApr 18, 2008 6:53 am 
Bertrand DelacretazApr 18, 2008 6:53 am 
Felix MeschbergerApr 18, 2008 7:06 am 
Felix MeschbergerApr 18, 2008 7:07 am 
Carsten ZiegelerApr 18, 2008 7:11 am 
Carsten ZiegelerApr 18, 2008 7:22 am 
Felix MeschbergerApr 18, 2008 7:30 am 
Carsten ZiegelerApr 18, 2008 7:35 am 
Felix MeschbergerApr 18, 2008 7:43 am 
Carsten ZiegelerApr 18, 2008 7:49 am 
Tobias BocanegraApr 18, 2008 9:33 am 
David NueschelerApr 25, 2008 7:40 am 
Felix MeschbergerApr 25, 2008 8:52 am 
Tobias BocanegraApr 25, 2008 9:35 am 
Dominik SüßApr 25, 2008 10:09 am 
Dominik SüßApr 25, 2008 12:07 pm 
Carsten ZiegelerApr 26, 2008 10:16 am 
Tobias BocanegraApr 26, 2008 10:45 am 
Dominik SüßApr 26, 2008 1:45 pm 
Tobias BocanegraApr 26, 2008 2:14 pm 
David NueschelerApr 27, 2008 4:37 am 
Bertrand DelacretazApr 28, 2008 6:21 am 
Felix MeschbergerApr 28, 2008 6:40 am 
Felix MeschbergerApr 28, 2008 8:33 am 
Bertrand DelacretazApr 29, 2008 12:50 am 
Subject:Re: Simplifying script paths and names?
From:Carsten Ziegeler (czie@apache.org)
Date:Apr 16, 2008 1:00:33 am
List:org.apache.incubator.sling-dev

Ok, *if* we want to change the behaviour of the script resolution, we should definitly do this before our first planned release.

Carsten

Alexander Klimetschek wrote:

Am 14.04.2008 um 18:11 schrieb Carsten Ziegeler:

Hmm, isn't there a better way? This solves the problem only partially - I ran into the same trouble if I want to support a different format like pdf; still all my scripts would be named "pdf.esp".

Without further thinking if this creates other problems, would about using a simple rule like "replacing the last slash with a dot"?

So instead of looking it /apps/foo/html.esp Sling would look at /apps/foo.html.esp.

With selectors this becomes /apps/foo.selector.html.esp".

Hmm, wouldn't it be solved by extending the proposed list as follows? Here each selector-specific script can also be named with the (uniquely named) resource type in the file name:

/apps/foo/selector/html.esp /apps/foo/selector.html.esp (same but with dots instead a subfolder) /apps/foo/foo.selector.html.esp (NEW, for unique filenames of selector scripts) /apps/foo/selector.esp /apps/foo/foo.selector.esp (NEW, for unique filenames of selector scripts) /apps/foo/html.esp (not specific to the selector) /apps/foo/foo.esp (not specific either)

Alex

-- Alexander Klimetschek alex@day.com

Day JCR Cup 08 | Win a MacBook Pro: http://dev.day.com/ <<