Yaws Parameter pass between out/1

Casper casper2000a@REDACTED
Wed Jun 8 06:21:17 CEST 2005


Hi All,

In yaws, can I pass parameters between out/1 calls? 

What I tried below doesn't work. I tried to use #arg.state to pass data from
first out/1 call to the second out/1. Please explain how to do it right.
	<erl>
		out(A) ->
			io:fwrite("State1: ~p~n", [A#arg.state]),
			{get_more, A#arg.cont, "Testing"}.
	</erl>
	<erl>
		out(A) ->
			io:fwrite("State2: ~p~n", [A#arg.state]),
			{html, "Funky Stuff"}.
	</erl>

Thanks in advance!
- Eranga





More information about the erlang-questions mailing list