<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -10,6 +10,210 @@ main() -&gt; #template { file=&quot;./wwwroot/onecolumn.html&quot;, bindings=[
 title() -&gt; &quot;Nitrogen API Reference&quot;.
 headline() -&gt; &quot;Nitrogen API Reference&quot;.
 
-body() -&gt; &quot;Coming soon.&quot;.
+body() -&gt; [
+	#h2 { text=&quot;Convenience Functions&quot; },
+	
+	#h3 { text=&quot;wf:f(Format, Data) -&gt; String&quot; },
+	&quot;Convenience function to format a string similar to io_lib:format(Format, Data). Returns a flattened list.&quot;,
+	
+	#h3 { text=&quot;wf:coalesce([List]) -&gt; Item&quot; },
+	&quot;Returns the first element in the list that is not 'undefined'.&quot;,
+	
+	#h3 { text=&quot;wf:is_string(Term) -&gt; Bool&quot; },
+	&quot;Returns true if the Term is an Erlang string. That is, a flat list of integers.&quot;,
+	
+	#h3 { text=&quot;wf:to_list(Term) -&gt; List&quot; },
+	&quot;Converts the supplied term to a flat list, if possible. Useful for turning Integers, Atoms, Binaries into Strings.&quot;,
+	
+	#h3 { text=&quot;wf:to_atom(Term) -&gt; Atom&quot; },
+	&quot;Converts the supplied term into an Atm, if possible. Useful for turning Integers, Binaries, and Strings into Atoms.&quot;,
 
-event(_) -&gt; ok.
+	#h3 { text=&quot;wf:to_binary(Term) -&gt; Binary&quot; },
+	&quot;Converts the supplied term into a Binary, if possible. Useful for turning Integers, Atoms, and Strings into Binaries.&quot;,
+
+	#h3 { text=&quot;wf:to_integer(Term) -&gt; Integer&quot; },
+	&quot;Converts the supplied term into an Integer, if possible. Useful for turning Atoms, Strings, and Binaries into Integers.&quot;,
+
+	#h3 { text=&quot;wf:html_encode(String) -&gt; EncodedString&quot; },
+	&quot;HTML encodes the supplied String, converting things like &amp;lt; and &amp;gt; into &amp;amp;lt; and &amp;amp;gt;.&quot;,
+	
+	#h3 { text=&quot;wf:guid() -&gt; String&quot; },
+	&quot;Returns a guid. That is, highly unique 32 byte hex string.&quot;,
+	
+	
+	
+	#h2 { text=&quot;Serialization&quot; },
+	
+	#h3 { text=&quot;wf:pickle(Term) -&gt; PickledBinary&quot; },
+	&quot;Serialize a term into a web-safe hex string, with checksumming. (Not encrypted!)&quot;,
+	
+	#h3 { text=&quot;wf:depickle(PickledBinary) -&gt; Term&quot; },
+	&quot;Turn a pickled binary back into the original term.&quot;,
+	
+	#h3 { text=&quot;wf:depickle(PickledBinary, SecondsToLive) -&gt; {IsStillValid, Term}&quot; },
+	&quot;
+		Turn a pickled binary back into the original term, checking to see if the term was 
+		pickled more than SecondsToLive second ago. Returns a tuple indicating if the term 
+		is still 'fresh'.
+	&quot;,
+		
+	
+	
+	#h2 { text=&quot;Web Request and Response&quot; },
+		
+	#h3 { text=&quot;wf:set_response_code(IntegerCode) -&gt; ok&quot; },
+	&quot;Set the HTTP response code. Defaults to 200&quot;,
+	
+	#h3 { text=&quot;wf:set_content_type(ContentType) -&gt; ok&quot; },
+	&quot;
+		Set the HTTP content type. Defaults to \&quot;text/html\&quot;. This can be
+		used to return text images or other files to the browser, rather than returning 
+		HTML.
+	&quot;,
+
+	#h3 { text=&quot;wf:get_path_info() -&gt; String&quot; },
+	&quot;
+		Return the path info for the requested page. In other words, if the module
+		web_my_page is requsted with the path \&quot;/web/my/page/some/extra/stuff\&quot;, then
+		wf:get_path_info() would return \&quot;some/extra/stuff\&quot;.
+	&quot;,
+	
+	#h3 { text=&quot;wf:get_page_module() -&gt; Atom&quot; },
+	&quot;
+		Returns the requested page module. Useful information to know when writing a custom
+	 	element or action.
+	&quot;,
+	
+	
+	
+	#h2 { text=&quot;HTTP Cookies&quot; },
+
+	#h3 { text=&quot;wf:set_cookie(Key, Value) -&gt; ok&quot; },
+	&quot;
+		Tell Nitrogen to set a cookie on the browser. Uses \&quot;/\&quot; for the Path, and Nitrogen's
+		session timeout setting for the MinutesToLive value.
+	&quot;,
+	
+	#h3 { text=&quot;wf:set_cookie(Key, Value, Path, MinutesToLive) -&gt; ok&quot; },
+	&quot;
+		Tell Nitrogen to set a cookie on the browser under the specified Path that is valid
+		for a certain number of minutes.
+	&quot;,
+	
+	#h3 { text=&quot;wf:get_cookie(Key) -&gt; String&quot; },
+	&quot;Retrieve a previously set cookie.&quot;,
+	
+
+	
+	#h2 { text=&quot;HTTP Headers&quot; },
+	
+	#h3 { text=&quot;wf:get_headers() -&gt; [{AtomKey, StringValue}, ...]&quot; },
+	&quot;Returns a proplist of all HTTP headers.&quot;,
+	
+	#h3 { text=&quot;wf:get_header(AtomKey) -&gt; Value&quot; },
+	&quot;Returns the value of an HTTP header.&quot;,
+	
+	#h3 { text=&quot;wf:set_header(StringKey, HeaderValue) -&gt; ok&quot; },
+	&quot;Sets an HTTP header during the next response.&quot;,
+	
+
+
+	#h2 { text=&quot;AJAX Updates&quot; },
+	
+	#h3 { text=&quot;wf:update(TargetID, Elements) -&gt; ok&quot; },
+	&quot;Replace the contents of TargetID with a new set of Nitrogen Elements.&quot;,
+	
+	#h3 { text=&quot;wf:insert_top(TargetID, Elements) -&gt; ok&quot; },
+	&quot;Insert Nitrogen Elements at the top of TargetID, shifting the existing contents downward.&quot;,
+	
+	#h3 { text=&quot;wf:insert_bottom(TargetID, Elements) -&gt; ok&quot; },
+	&quot;Insert Nitrogen Elements at the bottom of the TargetID, below the existing contents.&quot;,
+
+
+	#h2 { text=&quot;Event Wiring&quot; }
+].
+
+% wire(Actions) -&gt; wf_render:wire(Actions).
+% wire(TargetID, Actions) -&gt; wf_render:wire(TargetID, Actions).
+% wire(TriggerID, TargetID, Actions) -&gt; wf_render:wire(TriggerID, TargetID, Actions).
+% 
+% 
+% %%% WF_CONTINUE %%%
+% 
+% continue(Tag, Function) -&gt; wf_continuation:continue(Tag, Function).
+% continue(Tag, Function, Interval) -&gt; wf_continuation:continue(Tag, Function, Interval).
+% continue(Tag, Function, Interval, Timeout) -&gt; wf_continuation:continue(Tag, Function, Interval, Timeout).
+% 
+% 
+% %%% WF_COMET %%%
+% 
+% comet(Function) -&gt; wf_comet:comet(Function).
+% comet_flush() -&gt; wf_comet:comet_flush().
+% 
+% 
+% %%% WF_REDIRECT %%%
+% 
+% redirect(Url) -&gt; wf_redirect:redirect(Url).
+% redirect_to_login(Url) -&gt; wf_redirect:redirect_to_login(Url).
+% redirect_from_login(DefaultUrl) -&gt; wf_redirect:redirect_from_login(DefaultUrl).
+% 
+% 
+% 
+% %%% WF_SESSION %%%
+% 
+% state(Key) -&gt; wf_state:state(Key).
+% state(Key, Value) -&gt; wf_state:state(Key, Value).
+% clear_state() -&gt; wf_state:clear_state().
+% 
+% 
+% %%% WF_STATE %%%
+% 
+% user() -&gt; wf_session:user().
+% user(User) -&gt; wf_session:user(User).
+% clear_user() -&gt; wf_session:clear_user().
+% 
+% role(Role) -&gt; wf_session:role(Role).
+% role(Role, IsInRole) -&gt; wf_session:role(Role, IsInRole).
+% clear_roles() -&gt; wf_session:clear_roles().
+% 
+% session(Key) -&gt; wf_session:session(Key).
+% session(Key, Value) -&gt; wf_session:session(Key, Value).
+% clear_session() -&gt; wf_session:clear_session().
+% 
+% logout() -&gt; clear_user(), clear_roles(), clear_state(), clear_session().
+% 
+% 
+% %%% WF_CACHE %%%
+% 
+% cache(Key, Function) -&gt; wf_cache:cache(Key, Function).
+% cache(Key, Function, Options) -&gt; wf_cache:cache(Key, Function, Options).
+% 
+% 
+% %%% WF_QUERY %%%
+% 
+% q(Q) -&gt; wf_query:q(Q).
+% 
+% 
+% %%% WF_PATH %%%
+% 
+% me_var() -&gt; wf_render:me_var().
+% temp_id() -&gt; wf_path:temp_id().
+% to_js_id(Path) -&gt; wf_path:to_js_id(Path).
+% 
+% 
+% %%% OTHER %%%
+% 
+% flash(Terms) -&gt; element_flash:add_flash(Terms).
+% 
+% assert(true, _) -&gt; ok;
+% assert(false, Error) -&gt; erlang:error(Error).
+% 
+% 
+% 
+% 
+% 
+% 
+% 
+% &quot;Coming soon.&quot;.
+% 
+% event(_) -&gt; ok.</diff>
      <filename>Quickstart/src/reference/web_reference_api.erl</filename>
    </modified>
    <modified>
      <diff>@@ -34,7 +34,6 @@ f(S) -&gt; wf_utils:f(S).
 f(S, Args) -&gt; wf_utils:f(S, Args).
 coalesce(L) -&gt; wf_utils:coalesce(L).
 
-id() -&gt; wf_utils:id().
 guid() -&gt; wf_utils:guid().
 
 pickle(Data) -&gt; wf_utils:pickle(Data).</diff>
      <filename>src/wf.erl</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>c74522dcd3821e5d201bad7a82c9b7acdf1674eb</id>
    </parent>
  </parents>
  <author>
    <name>Rusty Klophaus</name>
    <email>rklophaus@gmail.com</email>
  </author>
  <url>http://github.com/rklophaus/nitrogen/commit/b6f927b4bffea9e8e9017b059077eae8d9478fd3</url>
  <id>b6f927b4bffea9e8e9017b059077eae8d9478fd3</id>
  <committed-date>2009-10-02T05:21:02-07:00</committed-date>
  <authored-date>2009-10-02T05:21:02-07:00</authored-date>
  <message>Documentation.</message>
  <tree>63916159db43b60fedbe29ca20ca6c4e4aae7721</tree>
  <committer>
    <name>Rusty Klophaus</name>
    <email>rklophaus@gmail.com</email>
  </committer>
</commit>
