jla415 | 6 Jun 04:09 2007
Picon

yaws cvs truncated Makefile


Hello,

It appears revision 1.51 of src/Makefile is currently empty in yaws cvs. 
Can someone commit a working version?

Thanks,
Jason
--

-- 
View this message in context: http://www.nabble.com/yaws-cvs-truncated-Makefile-tf3875426.html#a10981157
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/
Picon

ssi/yssi relative paths

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/
Claes Wikstrom | 10 Jun 21:50 2007

Re: ssi/yssi relative paths

ejonesca@... 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/
(Continue reading)

Jim Menard | 11 Jun 01:19 2007
Picon

Re: ssi/yssi relative paths

On 6/10/07, Claes Wikstrom <klacke@...> wrote:
> ejonesca@... 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.

(Continue reading)

jla415 | 11 Jun 01:56 2007
Picon

Re: ssi/yssi relative paths


Jim Menard wrote:
> 
> On 6/10/07, Claes Wikstrom <klacke@...> wrote:
>> ejonesca@... 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
(Continue reading)

julian | 11 Jun 14:23 2007

Re: ssi/yssi relative paths

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.
(Continue reading)

Picon

Re: ssi/yssi relative paths

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@...> wrote:

> ejonesca@... 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?
> > 
> 
(Continue reading)

Claes Wikstrom | 12 Jun 00:12 2007

Re: ssi/yssi relative paths

ejonesca@... 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/
Picon

Re: ssi/yssi relative paths

I did. There up on sourceforge (the patches submitted
by ejones1):

http://sourceforge.net/tracker/?atid=443519&group_id=45637&func=browse

--- Claes Wikstrom <klacke@...> wrote:

> ejonesca@... 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
> 

 
____________________________________________________________________________________
Finding fabulous fares is fun.  
Let Yahoo! FareChase search your favorite travel sites to find flight and hotel bargains.
http://farechase.yahoo.com/promo-generic-14795097

-------------------------------------------------------------------------
(Continue reading)

Claes Wikström | 12 Jun 09:54 2007

Re: ssi/yssi relative paths

ejonesca@... wrote:
> I did. There up on sourceforge (the patches submitted
> by ejones1):
> 
> http://sourceforge.net/tracker/?atid=443519&group_id=45637&func=browse
> 

Thanks

/klacke

--

-- 
Claes Wikstrom                        -- Caps lock is nowhere and
http://www.tail-f.com                 -- everything is under control
cellphone: +46 70 2097763

-------------------------------------------------------------------------
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/

Gmane