ErlyWeb in trunk does work with Yaws, but annoyingly the Yaws
appmoddata keeps changing between versions. What I did in the Vimagi
app controller is normalize the appmodata field of the arg as follows:
{Appmod, A1} = case yaws_arg:appmoddata(A) of
[$/ | _] = Appmod2 ->
{Appmod2, A};
Other ->
Appmod2 = [$/ | Other],
{Appmod2, yaws_arg:appmoddata(A, Appmod2)}
end,
Then I used Appmod and A1 in the rest of the hook/1 function.
Before ErlyWeb 0.7 is released maybe I should add this code to ErlyWeb
to standardize the appmoddata field between all Yaws versions at least
as far as ErlyWeb is concerned.
What do you think?
Yariv
On Dec 10, 2007 7:34 AM, Ghalib Suleiman <[EMAIL PROTECTED]> wrote:
>
> ...I can't believe I never knew about {auto_compile, true}, don't know
> how I missed that. So embarrassing...
>
> Quick question, what's the status on what Yaws versions are work with
> Erlyweb? Does Erlyweb in trunk work with the latest Yaws?
>
> On Dec 10, 1:14 pm, "Yariv Sadan" <[EMAIL PROTECTED]> wrote:
> > Thanks for this... I use emacs. But I develop with {auto_compile,
> > true}, so I never have to call erlyweb:compile() in development. This
> > looks very nice though -- I look forward to using it.
> >
> > On Dec 9, 2007 4:01 PM, Ghalib Suleiman <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > > Hi everyone, I wrote an Erlyweb mode from Emacs. It's derived from the
> > > official Erlang mode, and basically adds couple of keybindings (C-c C-
> > > e k to call erlyweb:compile/1, C-c C-e c to call
> > > erlyweb:create_component/2) and launches an interactive Yaws shell
> > > instead of the vanilla erl one when you hit C-c C-z. I had to scratch
> > > an itch today because it got too annoying to keep typing
> > > erlyweb:compile etc over and over again :).
> >
> > > You can download it athttp://www.theghalib.com. Documentation in
>
> > > erlyweb.el.
> >
> > > Also, just a survey, does anyone on this list actually use Emacs for
> > > Erlang development?
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"erlyweb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---