| Author |
Message |
|
| ernestjones |
Posted: Sun Jun 10, 2007 5:49 am |
|
|
|
Joined: 07 May 2007
Posts: 4
Location: Lindon, Utah, USA
|
I noticed that File paths work differently between ssi
and yssi.
i.e.:
out(Arg)->{ssi,"testdir/ssi_inc.yaws","%",[]}.
will find the file relative to the yaws docroot.
But,
out(Arg)->{yssi,"testdir/ssi_inc.yaws"}.
will find it relative to the calling yaws file.
Is there a reason that the file lookups work
differently?
____________________________________________________________________________________
Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games.
http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Sun Jun 10, 2007 7:51 pm |
|
|
|
Guest
|
ejonesca@yahoo.com wrote:
> I noticed that File paths work differently between ssi
> and yssi.
>
> i.e.:
>
> out(Arg)->{ssi,"testdir/ssi_inc.yaws","%",[]}.
>
> will find the file relative to the yaws docroot.
>
> But,
>
> out(Arg)->{yssi,"testdir/ssi_inc.yaws"}.
>
> will find it relative to the calling yaws file.
>
> Is there a reason that the file lookups work
> differently?
>
sloppyness ... would be the reason. This cannot be changed though
since a change would break code. Should be documented though.
/klacke
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Sun Jun 10, 2007 11:20 pm |
|
|
|
Guest
|
On 6/10/07, Claes Wikstrom <klacke@tail-f.com> wrote:
> ejonesca@yahoo.com wrote:
> > I noticed that File paths work differently between ssi
> > and yssi.
> >
> > i.e.:
> >
> > out(Arg)->{ssi,"testdir/ssi_inc.yaws","%",[]}.
> >
> > will find the file relative to the yaws docroot.
> >
> > But,
> >
> > out(Arg)->{yssi,"testdir/ssi_inc.yaws"}.
> >
> > will find it relative to the calling yaws file.
> >
> > Is there a reason that the file lookups work
> > differently?
> >
>
> sloppyness ... would be the reason. This cannot be changed though
> since a change would break code. Should be documented though.
I'd like to suggest that this is the wrong approach. Now is the time
to fix this problem. Erlang is getting a lot of press right now, and
this should be fixed before it's too late. Too late because there will
hopefully be a lot more users of Erlang and Yaws, and too late because
an inconsistency like this looks bad.
Jim
--
Jim Menard, jimm@io.com, jim.menard@gmail.com
http://www.io.com/~jimm/
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Sun Jun 10, 2007 11:56 pm |
|
|
|
Guest
|
Jim Menard wrote:
>
> On 6/10/07, Claes Wikstrom <klacke@tail-f.com> wrote:
>> ejonesca@yahoo.com wrote:
>> > I noticed that File paths work differently between ssi
>> > and yssi.
>> >
>> > i.e.:
>> >
>> > out(Arg)->{ssi,"testdir/ssi_inc.yaws","%",[]}.
>> >
>> > will find the file relative to the yaws docroot.
>> >
>> > But,
>> >
>> > out(Arg)->{yssi,"testdir/ssi_inc.yaws"}.
>> >
>> > will find it relative to the calling yaws file.
>> >
>> > Is there a reason that the file lookups work
>> > differently?
>> >
>>
>> sloppyness ... would be the reason. This cannot be changed though
>> since a change would break code. Should be documented though.
>
> I'd like to suggest that this is the wrong approach. Now is the time
> to fix this problem. Erlang is getting a lot of press right now, and
> this should be fixed before it's too late. Too late because there will
> hopefully be a lot more users of Erlang and Yaws, and too late because
> an inconsistency like this looks bad.
>
>
I'd have to agree here. It makes little sense to have a relative path ssi
call use the docroot rather than the path to the current file that is
evaluating the ssi call. Better to fix this now before yaws gets more
adoption as the current user base is well equiped to fix any incompatibilies
during an ugprade with a simple grep and replacement.
--
View this message in context: http://www.nabble.com/ssi-yssi-relative-paths-tf3896432.html#a11053530
Sent from the Yaws mailing list archive at Nabble.com.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Mon Jun 11, 2007 12:23 pm |
|
|
|
Guest
|
While I believe there are some serious shortcomings yet to be fixed with
regards to yaws includes and recursion - the absolute/relative issue
described below has already been fixed in the source a few months ago.
I'm testing using the version from CVS just before conversion to SVN - but I
don't think much has changed in between.
Testing with the CVS version:
Both:
out(Arg)->{ssi,"testdir/ssi_inc.yaws","%",[]}.
out(Arg)->{yssi,"testdir/ssi_inc.yaws"}.
are 'relative' includes due to the lack of a leading slash.
Both:
out(Arg)->{ssi,"/testdir/ssi_inc.yaws","%",[]}.
out(Arg)->{yssi,"/testdir/ssi_inc.yaws"}.
Are 'absolute' includes with the path being from the docroot.
I've tested by placing an ssi_inc.yaws in /testdir and a different version
under /sub/testdir
Files in both locations can include the appropriate files relatively or
absolutely - no problems.
Even relative backtracking includes work; for example:
out(Arg)->{ssi,"../testdir/ssi_inc.yaws","%",[]}.
out(Arg)->{yssi,"../testdir/ssi_inc.yaws"}.
Speaking of sloppy.. I owe some documentation to the project regarding
virtual directories.. as well as these fixes to includes.
My apologies.. I haven't forgotten or disappeared entirely - but am under
serious time constraints for a while yet.
I'll still monitor for bugs related to code I've added, and will hopefully
get a chance to work with the other devs to drive things forward again soon.
Cheers,
Julian
----- Original Message -----
From: "jla415" <jla415@gmail.com>
To: <erlyaws-list@lists.sourceforge.net>
Sent: Sunday, June 10, 2007 11:56 PM
Subject: Re: [Erlyaws-list] ssi/yssi relative paths
>
>
> Jim Menard wrote:
> >
> > On 6/10/07, Claes Wikstrom <klacke@tail-f.com> wrote:
> >> ejonesca@yahoo.com wrote:
> >> > I noticed that File paths work differently between ssi
> >> > and yssi.
> >> >
> >> > i.e.:
> >> >
> >> > out(Arg)->{ssi,"testdir/ssi_inc.yaws","%",[]}.
> >> >
> >> > will find the file relative to the yaws docroot.
> >> >
> >> > But,
> >> >
> >> > out(Arg)->{yssi,"testdir/ssi_inc.yaws"}.
> >> >
> >> > will find it relative to the calling yaws file.
> >> >
> >> > Is there a reason that the file lookups work
> >> > differently?
> >> >
> >>
> >> sloppyness ... would be the reason. This cannot be changed though
> >> since a change would break code. Should be documented though.
> >
> > I'd like to suggest that this is the wrong approach. Now is the time
> > to fix this problem. Erlang is getting a lot of press right now, and
> > this should be fixed before it's too late. Too late because there will
> > hopefully be a lot more users of Erlang and Yaws, and too late because
> > an inconsistency like this looks bad.
> >
> >
>
> I'd have to agree here. It makes little sense to have a relative path ssi
> call use the docroot rather than the path to the current file that is
> evaluating the ssi call. Better to fix this now before yaws gets more
> adoption as the current user base is well equiped to fix any
incompatibilies
> during an ugprade with a simple grep and replacement.
>
>
> --
> View this message in context:
http://www.nabble.com/ssi-yssi-relative-paths-tf3896432.html#a11053530
> Sent from the Yaws mailing list archive at Nabble.com.
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Erlyaws-list mailing list
> Erlyaws-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/erlyaws-list
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist |
|
|
| Back to top |
|
| ernestjones |
Posted: Mon Jun 11, 2007 6:39 pm |
|
|
|
Joined: 07 May 2007
Posts: 4
Location: Lindon, Utah, USA
|
Thanks.
Speaking of documentation, I've been submitting a
small handful of syntax and spelling patches for the
example yaws files. Can someone with commit rights
take a peek at them?
--- Claes Wikstrom <klacke@tail-f.com> wrote:
> ejonesca@yahoo.com wrote:
> > I noticed that File paths work differently between
> ssi
> > and yssi.
> >
> > i.e.:
> >
> > out(Arg)->{ssi,"testdir/ssi_inc.yaws","%",[]}.
> >
> > will find the file relative to the yaws docroot.
> >
> > But,
> >
> > out(Arg)->{yssi,"testdir/ssi_inc.yaws"}.
> >
> > will find it relative to the calling yaws file.
> >
> > Is there a reason that the file lookups work
> > differently?
> >
>
> sloppyness ... would be the reason. This cannot be
> changed though
> since a change would break code. Should be
> documented though.
>
>
> /klacke
>
____________________________________________________________________________________
Sick sense of humor? Visit Yahoo! TV's
Comedy with an Edge to see what's on, when.
http://tv.yahoo.com/collections/222
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Mon Jun 11, 2007 10:14 pm |
|
|
|
Guest
|
ejonesca@yahoo.com wrote:
> Thanks.
>
> Speaking of documentation, I've been submitting a
> small handful of syntax and spelling patches for the
> example yaws files. Can someone with commit rights
> take a peek at them?
>
so post the patches
/klacke
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist |
|
|
| Back to top |
|
| ernestjones |
Posted: Tue Jun 12, 2007 3:28 am |
|
|
|
Joined: 07 May 2007
Posts: 4
Location: Lindon, Utah, USA
|
|
| Back to top |
|
| Guest |
Posted: Tue Jun 12, 2007 7:54 am |
|
|
|
Guest
|
|
| Back to top |
|
|
|
All times are GMT
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|
|