Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (18 sloc) 408 Bytes
-module(update).
-compile(export_all).
-include_lib("nitrogen/include/wf.hrl").
main() -> #template{file="site/templates/bare.html"}.
title() -> "Update Demo".
body() ->
#panel{id=wrapper,body=[
"Click below<br />",
#button{text="Click Me!",postback=update}
]}.
event(update) ->
wf:update(wrapper,[
"You clicked it<br />",
#link{
url="http://erlang.org",
text="Here's Erlang"
}
]).
Jump to Line
Something went wrong with that request. Please try again.