Erlang Mailing Lists

Author Message

<  Yaws mailing list  ~  yssi

Guest
Posted: Sat Oct 14, 2006 7:50 pm Reply with quote
Guest
Hi,

I would like to create an appmod that invokes a yssi after
manipulating the Arg that the appmod gets in the out/1 function.

Basically, this is what I want to do in psedocode:

out(A) ->
A1 = change(A),
{yssi, "foo.yaws", A1}.

>From the documentation on the website, it looks like it's currently
impossible to do this. Am I missing something? If not, how
feasible/desirable would it be to add this functionality to Yaws?

Thanks!

Yariv

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist
noss
Posted: Sun Oct 15, 2006 9:29 am Reply with quote
User Joined: 09 Oct 2005 Posts: 290
arg rewrite mods rewrite ... well, the arg. can it do what you want?

On 10/14/06, Yariv Sadan <yarivvv@gmail.com> wrote:
> Hi,
>
> I would like to create an appmod that invokes a yssi after
> manipulating the Arg that the appmod gets in the out/1 function.
>
> Basically, this is what I want to do in psedocode:
>
> out(A) ->
> A1 = change(A),
> {yssi, "foo.yaws", A1}.
>

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist
View user's profile Send private message
Guest
Posted: Sun Oct 15, 2006 4:02 pm Reply with quote
Guest
hmm... I don't think so. The logic for potentially returning {yssi,
YawsFile, Arg1} is in an appmod, and I don't think I can move it to
the arg_rewrite_mod because it's tied to other logic in the same
appmod.

Yariv

On 10/15/06, Christian S <chsu79@gmail.com> wrote:
> arg rewrite mods rewrite ... well, the arg. can it do what you want?
>
> On 10/14/06, Yariv Sadan <yarivvv@gmail.com> wrote:
> > Hi,
> >
> > I would like to create an appmod that invokes a yssi after
> > manipulating the Arg that the appmod gets in the out/1 function.
> >
> > Basically, this is what I want to do in psedocode:
> >
> > out(A) ->
> > A1 = change(A),
> > {yssi, "foo.yaws", A1}.
> >
>

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist
noss
Posted: Sun Oct 15, 2006 5:15 pm Reply with quote
User Joined: 09 Oct 2005 Posts: 290
How about passing on extra data to the yssi part through bindings then?

On 10/15/06, Yariv Sadan <yarivvv@gmail.com> wrote:
> hmm... I don't think so. The logic for potentially returning {yssi,
> YawsFile, Arg1} is in an appmod, and I don't think I can move it to
> the arg_rewrite_mod because it's tied to other logic in the same
> appmod.
>
> Yariv

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist
View user's profile Send private message
Guest
Posted: Sun Oct 15, 2006 8:04 pm Reply with quote
Guest
Hi,

That might work, but I found a different way of doing what I wanted to
do. Thanks for the help!

Regards,
Yariv

On 10/15/06, Christian S <chsu79@gmail.com> wrote:
> How about passing on extra data to the yssi part through bindings then?
>
> On 10/15/06, Yariv Sadan <yarivvv@gmail.com> wrote:
> > hmm... I don't think so. The logic for potentially returning {yssi,
> > YawsFile, Arg1} is in an appmod, and I don't think I can move it to
> > the arg_rewrite_mod because it's tied to other logic in the same
> > appmod.
> >
> > Yariv
>

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist
Guest
Posted: Mon Oct 16, 2006 6:53 pm Reply with quote
Guest
Yariv, can you explain the method you discovered? I would like to do same

Cheers,
Martin

On 10/15/06, Yariv Sadan <yarivvv@gmail.com> wrote:
> Hi,
>
> That might work, but I found a different way of doing what I wanted to
> do. Thanks for the help!
>
> Regards,
> Yariv
>
> On 10/15/06, Christian S <chsu79@gmail.com> wrote:
> > How about passing on extra data to the yssi part through bindings then?
> >
> > On 10/15/06, Yariv Sadan <yarivvv@gmail.com> wrote:
> > > hmm... I don't think so. The logic for potentially returning {yssi,
> > > YawsFile, Arg1} is in an appmod, and I don't think I can move it to
> > > the arg_rewrite_mod because it's tied to other logic in the same
> > > appmod.
> > >
> > > Yariv
> >
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Erlyaws-list mailing list
> Erlyaws-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/erlyaws-list
>

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist
Guest
Posted: Mon Oct 16, 2006 7:47 pm Reply with quote
Guest
I actually ended up writing my own template language on top of Erlang Smile

I'll open source it soon.

The binding suggestion might work, but I haven't tried it.

Cheers,
Yariv

On 10/16/06, Martin Logan <martinjlogan@gmail.com> wrote:
> Yariv, can you explain the method you discovered? I would like to do same
>
> Cheers,
> Martin
>
> On 10/15/06, Yariv Sadan <yarivvv@gmail.com> wrote:
> > Hi,
> >
> > That might work, but I found a different way of doing what I wanted to
> > do. Thanks for the help!
> >
> > Regards,
> > Yariv
> >
> > On 10/15/06, Christian S <chsu79@gmail.com> wrote:
> > > How about passing on extra data to the yssi part through bindings then?
> > >
> > > On 10/15/06, Yariv Sadan <yarivvv@gmail.com> wrote:
> > > > hmm... I don't think so. The logic for potentially returning {yssi,
> > > > YawsFile, Arg1} is in an appmod, and I don't think I can move it to
> > > > the arg_rewrite_mod because it's tied to other logic in the same
> > > > appmod.
> > > >
> > > > Yariv
> > >
> >
> > -------------------------------------------------------------------------
> > Using Tomcat but need to do more? Need to support web services, security?
> > Get stuff done quickly with pre-integrated technology to make your job easier
> > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > _______________________________________________
> > Erlyaws-list mailing list
> > Erlyaws-list@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/erlyaws-list
> >
>

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist
Guest
Posted: Mon Oct 16, 2006 8:25 pm Reply with quote
Guest
I have also done that. It is rather simple but effective, it is just
a clone of the PHP:Pear template system. I would be interested to see
you work. I will release mine as well but I have other projects I am
working on now.

On 10/16/06, Yariv Sadan <yarivvv@gmail.com> wrote:
> I actually ended up writing my own template language on top of Erlang Smile
>
> I'll open source it soon.
>
> The binding suggestion might work, but I haven't tried it.
>
> Cheers,
> Yariv
>
> On 10/16/06, Martin Logan <martinjlogan@gmail.com> wrote:
> > Yariv, can you explain the method you discovered? I would like to do same
> >
> > Cheers,
> > Martin
> >
> > On 10/15/06, Yariv Sadan <yarivvv@gmail.com> wrote:
> > > Hi,
> > >
> > > That might work, but I found a different way of doing what I wanted to
> > > do. Thanks for the help!
> > >
> > > Regards,
> > > Yariv
> > >
> > > On 10/15/06, Christian S <chsu79@gmail.com> wrote:
> > > > How about passing on extra data to the yssi part through bindings then?
> > > >
> > > > On 10/15/06, Yariv Sadan <yarivvv@gmail.com> wrote:
> > > > > hmm... I don't think so. The logic for potentially returning {yssi,
> > > > > YawsFile, Arg1} is in an appmod, and I don't think I can move it to
> > > > > the arg_rewrite_mod because it's tied to other logic in the same
> > > > > appmod.
> > > > >
> > > > > Yariv
> > > >
> > >
> > > -------------------------------------------------------------------------
> > > Using Tomcat but need to do more? Need to support web services, security?
> > > Get stuff done quickly with pre-integrated technology to make your job easier
> > > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > > _______________________________________________
> > > Erlyaws-list mailing list
> > > Erlyaws-list@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/erlyaws-list
> > >
> >
>

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist
Guest
Posted: Mon Oct 16, 2006 9:03 pm Reply with quote
Guest
My template language is probably even simpler than that, and it's
quite close to its Erlang roots (in fact, it compiles a template file
into a BEAM file). It's not one of those "your web designer doesn't
have to know anything about Erlang" kind of template languages, but it
should have very good performance and it also provides nice
line-precise error reporting.

Yariv

On 10/16/06, Martin Logan <martinjlogan@gmail.com> wrote:
> I have also done that. It is rather simple but effective, it is just
> a clone of the PHP:Pear template system. I would be interested to see
> you work. I will release mine as well but I have other projects I am
> working on now.
>
> On 10/16/06, Yariv Sadan <yarivvv@gmail.com> wrote:
> > I actually ended up writing my own template language on top of Erlang Smile
> >
> > I'll open source it soon.
> >
> > The binding suggestion might work, but I haven't tried it.
> >
> > Cheers,
> > Yariv
> >
> > On 10/16/06, Martin Logan <martinjlogan@gmail.com> wrote:
> > > Yariv, can you explain the method you discovered? I would like to do same
> > >
> > > Cheers,
> > > Martin
> > >
> > > On 10/15/06, Yariv Sadan <yarivvv@gmail.com> wrote:
> > > > Hi,
> > > >
> > > > That might work, but I found a different way of doing what I wanted to
> > > > do. Thanks for the help!
> > > >
> > > > Regards,
> > > > Yariv
> > > >
> > > > On 10/15/06, Christian S <chsu79@gmail.com> wrote:
> > > > > How about passing on extra data to the yssi part through bindings then?
> > > > >
> > > > > On 10/15/06, Yariv Sadan <yarivvv@gmail.com> wrote:
> > > > > > hmm... I don't think so. The logic for potentially returning {yssi,
> > > > > > YawsFile, Arg1} is in an appmod, and I don't think I can move it to
> > > > > > the arg_rewrite_mod because it's tied to other logic in the same
> > > > > > appmod.
> > > > > >
> > > > > > Yariv
> > > > >
> > > >
> > > > -------------------------------------------------------------------------
> > > > Using Tomcat but need to do more? Need to support web services, security?
> > > > Get stuff done quickly with pre-integrated technology to make your job easier
> > > > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> > > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > > > _______________________________________________
> > > > Erlyaws-list mailing list
> > > > Erlyaws-list@lists.sourceforge.net
> > > > https://lists.sourceforge.net/lists/listinfo/erlyaws-list
> > > >
> > >
> >
>

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

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