|
|
| Author |
Message |
< Yaws mailing list ~ A fix needed in Yaws documentaiton? |
| LRP |
Posted: Fri May 28, 2010 6:13 am |
|
|
|
Joined: 08 Oct 2008
Posts: 8
Location: Boston, MA.
|
Hello,
Spent a frustrating hour or two trying get the table example at http://yaws.hyber.org/dynamic.yaws to work.
It was only after placing an empty list after the tr tag that I succeeded. See below.
Note that I simplified a bit to see what was going on and added a border. But it was the empty list that did the trick.
Looked all over to find documentation of ehtml, but couldn't find it. Might have helped. Does such exist?
I'm just a humble newbie, easily discouraged. Am I missing something here? Or does the code example need a touch-up?
I ran into this a year ago and gave up on yaws out of frustration. It's only now that I've mustered the patience to give it another try.
Thanks,
LRP
<html>
<h1>Foobar</h1>
<erl>
out(Arg) ->
{ehtml,
{table,
[{bgcolor, "tan"}, {border, "1"}],
{tr, [],
[{td, [], "Hi there" }]
}
}
}.
</erl>
<h1>Baz</h1>
</htm
------------------------------------------------------------------------------
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post received from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Fri May 28, 2010 9:01 am |
|
|
|
Guest
|
On 05/28/2010 07:48 AM, lloyd@paisite.com wrote:
> Hello,
>
> Spent a frustrating hour or two trying get the table example at http://yaws.hyber.org/dynamic.yaws to work.
>
> It was only after placing an empty list after the tr tag that I succeeded.
Thanks, irritating - and hard to find - yes.
> Looked all over to find documentation of ehtml, but couldn't find it. Might have helped. Does such exist?
Hmmm, no don't think so.
The only thing that exists is the phrase:
> Using the ehtml return value, we can return deep structured erlang terms that correspond directly to HTML code.
Which is true, it's a 1-1 mapping
>
> I'm just a humble newbie, easily discouraged. Am I missing something here?
Not at all, thanks for finding the bug and posting the solution, checked in and pushed.
> Or does the code example need a touch-up?
Well, better and better and better docs is always good.
>
> I ran into this a year ago and gave up on yaws out of frustration. It's only now that I've mustered the patience to give it another try.
>
Ok,
/klacke
------------------------------------------------------------------------------
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post received from mailinglist |
|
|
| Back to top |
|
| wuji |
Posted: Mon Sep 10, 2012 8:06 am |
|
|
|
User
Joined: 10 Aug 2012
Posts: 654
|
in the suicides.The doctor's mantra was "dying is not a crime," and and imitation designer *beep* and he made national headlines with his invention -- the thanatron, Greek
suicide machine -- which gave patients a "dignified, humane and painless" death."The death."The cheap polo shirts death."The people we were helping, there was never any question in their
said Nicol. "None of the patients ever had a wavering moment in in cheap designer *beep* in their decision."A pull of the trigger released a drug to induce
deep coma. Once asleep, a timer would inject a lethal dose of of buy real jordans of potassium chloride to stop the heart.Later, he used a "mercitron," or
machine, after his medical license was revoked after the first two deaths deaths buy real jordans deaths and he could no longer get the substances required for the
were those in the movement who didn't agree with his methodology," Nicol Nicol cheap replica *beep* Nicol said. "He was thwarted in that goal at every turn, but
did get the message out."He was determined and found it awfully hard hard knockoff designer *beep* hard to understand why people didn't see things as he did," he |
|
|
| 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
|
|
|