hi guys,

after going through this entire discussion and looking at issue:
https://issues.apache.org/jira/browse/SLING-387
i would like to raise the following point.

i think it is important that this change was originally suggested to
make the simple cases as simple and intuitive as possible for
the user of sling and not to come up with something that is really
easy and consistent to map for the sling implementation.

let me try to explain with an example:
as a user of sling i would like to have my app in
/apps/myapp and lets say i have a node of resourceType
"myapp/homepage" at "/content/myapp".

i would like to to be able to structure my applications as follows:

(1) /apps/myapp/homepage/hompage.esp (or html.esp or GET.esp)
(2) /apps/myapp/homepage/edit.esp (or edit.html.esp)
(3) /apps/myapp/homepage/header/highlight.jpg.esp
(4) /apps/myapp/homepage/header/selected.jpg.esp
(5) /apps/myapp/homepage/header/small.jpg.esp

where

/content/myapp.html -> (1)
/content/myapp.edit.html -> (2)
/content/myapp.header.highlight.jpg -> (3)
/content/myapp.header.selected.jpg -> (4)
/content/myapp.header.small.jpg -> (5)

i think it is important that we avoid unnecessary repetition at any point
and we would allow for enough flexibility in the /apps directory allow
the user to come up with something short, distinct and meaningful.

regards,
david





On Fri, Apr 18, 2008 at 6:34 PM, Tobias Bocanegra
<[EMAIL PROTECTED]> wrote:
> hi,
>  i just want to add, that most of the requests that actually hit sling
>  will probably be plain .html requests with no selectors. so the
>  /apps/foo/foo.jsp will probably resolve those requests. since requests
>  that usually need selectors are image requests which are very good
>  cacheable in a higher teer. so i don't think that in a real-live
>  scenario, the resource resolution performance is that relevant. and of
>  course it can easily be cached.
>
>  --
>  toby
>
>
>
>
>  On 4/18/08, Carsten Ziegeler <[EMAIL PROTECTED]> wrote:
>  > Felix Meschberger wote:
>  >
>  >
>  > > Hi,
>  > >
>  > > Am Freitag, den 18.04.2008, 16:35 +0200 schrieb Carsten Ziegeler:
>  > >
>  > > > Having scripts in /apps and /libs where /libs has precendence of /apps
>  > still feels not very intuitive for me.
>  > > >
>  > >
>  > > It is the other way around: /apps has precedence over /libs. And this is
>  > > IMHO intuitive.
>  > >
>  > >
>  >  Hehe, you see, it's not intuitive for me (ok, I'll write down 100 times
>  > "apps has precedence over libs, apps has precedence over libs..."
>  >
>  >
>  >  Carsten
>  >
>  >  --
>  >  Carsten Ziegeler
>  >  [EMAIL PROTECTED]
>  >
>



-- 
Visit: http://dev.day.com/ - Day JCR Cup 08 - Win a MacBook Pro

Reply via email to