Permalink
Browse files

Convert documentation to org mode, and start updating for Nitrogen 2.0

  • Loading branch information...
1 parent 525b1f4 commit 16099e1ad15527ec91fa97324c3fd55c6614ceed @rustyio rustyio committed Mar 7, 2010
Showing with 16,521 additions and 225 deletions.
  1. +1 −1 Quickstart/src/reference/web_reference_elements.erl
  2. +2 −2 apps/nitrogen/src/wf.erl
  3. +279 −0 doc/html/about.html
  4. +191 −0 doc/html/actions.html
  5. +165 −0 doc/html/actions/add_class.html
  6. +161 −0 doc/html/actions/alert.html
  7. +173 −0 doc/html/actions/animate.html
  8. +161 −0 doc/html/actions/appear.html
  9. +140 −0 doc/html/actions/base.html
  10. +186 −0 doc/html/actions/confirm.html
  11. +173 −0 doc/html/actions/effect.html
  12. +215 −0 doc/html/actions/event.html
  13. +162 −0 doc/html/actions/fade.html
  14. +172 −0 doc/html/actions/hide.html
  15. +165 −0 doc/html/actions/remove_class.html
  16. +172 −0 doc/html/actions/script.html
  17. +173 −0 doc/html/actions/show.html
  18. +174 −0 doc/html/actions/toggle.html
  19. +169 −0 doc/html/actions/validate.html
  20. +1,313 −0 doc/html/api.html
  21. +253 −0 doc/html/elements.html
  22. +164 −0 doc/html/elements/base.html
  23. +216 −0 doc/html/elements/bind.html
  24. +142 −0 doc/html/elements/br.html
  25. +194 −0 doc/html/elements/button.html
  26. +196 −0 doc/html/elements/checkbox.html
  27. +181 −0 doc/html/elements/draggable.html
  28. +200 −0 doc/html/elements/dropdown.html
  29. +197 −0 doc/html/elements/droppable.html
  30. +145 −0 doc/html/elements/flash.html
  31. +178 −0 doc/html/elements/gravatar.html
  32. +169 −0 doc/html/elements/h1.html
  33. +169 −0 doc/html/elements/h2.html
  34. +169 −0 doc/html/elements/h3.html
  35. +169 −0 doc/html/elements/h4.html
  36. +165 −0 doc/html/elements/hidden.html
  37. +142 −0 doc/html/elements/hr.html
  38. +157 −0 doc/html/elements/image.html
  39. +212 −0 doc/html/elements/inplace_textbox.html
  40. +169 −0 doc/html/elements/label.html
  41. +171 −0 doc/html/elements/lightbox.html
  42. +193 −0 doc/html/elements/link.html
  43. +161 −0 doc/html/elements/literal.html
  44. +160 −0 doc/html/elements/option.html
  45. +142 −0 doc/html/elements/p.html
  46. +165 −0 doc/html/elements/panel.html
  47. +191 −0 doc/html/elements/password.html
  48. +172 −0 doc/html/elements/singlerow.html
  49. +198 −0 doc/html/elements/sortblock.html
  50. +155 −0 doc/html/elements/sortitem.html
  51. +165 −0 doc/html/elements/span.html
  52. +161 −0 doc/html/elements/spinner.html
  53. +190 −0 doc/html/elements/table.html
  54. +191 −0 doc/html/elements/tablecell.html
  55. +191 −0 doc/html/elements/tableheader.html
  56. +167 −0 doc/html/elements/tablerow.html
  57. +182 −0 doc/html/elements/template.html
  58. +185 −0 doc/html/elements/textarea.html
  59. +199 −0 doc/html/elements/textbox.html
  60. +169 −0 doc/html/elements/value.html
  61. +207 −0 doc/html/handlers.html
  62. +507 −0 doc/html/index.html
  63. +8 −0 doc/{ → html}/stylesheet.css
  64. +13 −0 doc/html/stylesheet_api.css
  65. +156 −0 doc/html/validators.html
  66. +146 −0 doc/html/validators/confirm_password.html
  67. +160 −0 doc/html/validators/custom.html
  68. +142 −0 doc/html/validators/is_email.html
  69. +142 −0 doc/html/validators/is_integer.html
  70. +142 −0 doc/html/validators/is_required.html
  71. +159 −0 doc/html/validators/js_custom.html
  72. +146 −0 doc/html/validators/max_length.html
  73. +146 −0 doc/html/validators/min_length.html
  74. +0 −171 doc/index.org
  75. +73 −0 doc/org-mode/about.org
  76. +32 −0 doc/org-mode/actions.org
  77. +31 −0 doc/org-mode/actions/add_class.org
  78. +29 −0 doc/org-mode/actions/alert.org
  79. +35 −0 doc/org-mode/actions/animate.org
  80. +29 −0 doc/org-mode/actions/appear.org
  81. +25 −0 doc/org-mode/actions/base.org
  82. +37 −0 doc/org-mode/actions/confirm.org
  83. +35 −0 doc/org-mode/actions/effect.org
  84. +57 −0 doc/org-mode/actions/event.org
  85. +30 −0 doc/org-mode/actions/fade.org
  86. +35 −0 doc/org-mode/actions/hide.org
  87. +31 −0 doc/org-mode/actions/remove_class.org
  88. +39 −0 doc/org-mode/actions/script.org
  89. +37 −0 doc/org-mode/actions/show.org
  90. +36 −0 doc/org-mode/actions/toggle.org
  91. +33 −0 doc/org-mode/actions/validate.org
  92. +217 −51 doc/{ → org-mode}/api.org
  93. +50 −0 doc/org-mode/elements.org
  94. +37 −0 doc/org-mode/elements/base.org
  95. +75 −0 doc/org-mode/elements/bind.org
  96. +23 −0 doc/org-mode/elements/br.org
  97. +46 −0 doc/org-mode/elements/button.org
  98. +46 −0 doc/org-mode/elements/checkbox.org
  99. +40 −0 doc/org-mode/elements/draggable.org
  100. +51 −0 doc/org-mode/elements/dropdown.org
  101. +43 −0 doc/org-mode/elements/droppable.org
  102. +26 −0 doc/org-mode/elements/flash.org
  103. +41 −0 doc/org-mode/elements/gravatar.org
  104. +33 −0 doc/org-mode/elements/h1.org
  105. +33 −0 doc/org-mode/elements/h2.org
  106. +33 −0 doc/org-mode/elements/h3.org
  107. +33 −0 doc/org-mode/elements/h4.org
  108. +31 −0 doc/org-mode/elements/hidden.org
  109. +23 −0 doc/org-mode/elements/hr.org
  110. +27 −0 doc/org-mode/elements/image.org
  111. +55 −0 doc/org-mode/elements/inplace_textbox.org
  112. +33 −0 doc/org-mode/elements/label.org
  113. +39 −0 doc/org-mode/elements/lightbox.org
  114. +47 −0 doc/org-mode/elements/link.org
  115. +29 −0 doc/org-mode/elements/literal.org
  116. +30 −0 doc/org-mode/elements/option.org
  117. +23 −0 doc/org-mode/elements/p.org
  118. +33 −0 doc/org-mode/elements/panel.org
  119. +45 −0 doc/org-mode/elements/password.org
  120. +37 −0 doc/org-mode/elements/singlerow.org
  121. +45 −0 doc/org-mode/elements/sortblock.org
  122. +27 −0 doc/org-mode/elements/sortitem.org
  123. +31 −0 doc/org-mode/elements/span.org
  124. +30 −0 doc/org-mode/elements/spinner.org
  125. +53 −0 doc/org-mode/elements/table.org
  126. +45 −0 doc/org-mode/elements/tablecell.org
  127. +45 −0 doc/org-mode/elements/tableheader.org
  128. +33 −0 doc/org-mode/elements/tablerow.org
  129. +47 −0 doc/org-mode/elements/template.org
  130. +41 −0 doc/org-mode/elements/textarea.org
  131. +49 −0 doc/org-mode/elements/textbox.org
  132. +33 −0 doc/org-mode/elements/value.org
  133. +31 −0 doc/org-mode/handlers.org
  134. +231 −0 doc/org-mode/index.org
  135. +86 −0 doc/org-mode/stylesheet.css
  136. +13 −0 doc/org-mode/stylesheet_api.css
  137. +23 −0 doc/org-mode/validators.org
  138. +25 −0 doc/org-mode/validators/confirm_password.org
  139. +37 −0 doc/org-mode/validators/custom.org
  140. +23 −0 doc/org-mode/validators/is_email.org
  141. +23 −0 doc/org-mode/validators/is_integer.org
  142. +23 −0 doc/org-mode/validators/is_required.org
  143. +35 −0 doc/org-mode/validators/js_custom.org
  144. +25 −0 doc/org-mode/validators/max_length.org
  145. +25 −0 doc/org-mode/validators/min_length.org
  146. 0 rel/{overlay → overlay_inets}/etc/vm.args
  147. +22 −0 rel/overlay_yaws/etc/vm.args
  148. +1 −0 support/nitrogen-mode/nitrogen-mode.el
@@ -3,7 +3,7 @@
-compile(export_all).
main() ->
- PathInfo = wf:get_path_info(),
+ PathInfo = wf:path_info(),
Bindings = [{'Group', reference}, {'Item', elements}],
case PathInfo of
[] ->
View
@@ -279,8 +279,8 @@ send_global(Pool, Message) ->
flush() ->
ok = action_comet:flush().
-get_async_mode() -> wf_context:async_mode().
-set_async_mode(AsyncMode) -> wf_context:async_mode(AsyncMode).
+async_mode() -> wf_context:async_mode().
+async_mode(AsyncMode) -> wf_context:async_mode(AsyncMode).
switch_to_comet() -> set_async_mode(comet).
switch_to_polling(IntervalInMS) -> set_async_mode({poll, IntervalInMS}).
View
@@ -0,0 +1,279 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+lang="en" xml:lang="en">
+<head>
+<title>Getting Started with Nitrogen</title>
+<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"/>
+<meta name="generator" content="Org-mode"/>
+<meta name="generated" content="2010-03-07 13:40:17 EST"/>
+<meta name="author" content="Rusty Klophaus (@rklophaus)"/>
+<meta name="description" content=""/>
+<meta name="keywords" content=""/>
+<style type="text/css">
+ <!--/*--><![CDATA[/*><!--*/
+ html { font-family: Times, serif; font-size: 12pt; }
+ .title { text-align: center; }
+ .todo { color: red; }
+ .done { color: green; }
+ .tag { background-color: #add8e6; font-weight:normal }
+ .target { }
+ .timestamp { color: #bebebe; }
+ .timestamp-kwd { color: #5f9ea0; }
+ p.verse { margin-left: 3% }
+ pre {
+ border: 1pt solid #AEBDCC;
+ background-color: #F3F5F7;
+ padding: 5pt;
+ font-family: courier, monospace;
+ font-size: 90%;
+ overflow:auto;
+ }
+ table { border-collapse: collapse; }
+ td, th { vertical-align: top; }
+ dt { font-weight: bold; }
+ div.figure { padding: 0.5em; }
+ div.figure p { text-align: center; }
+ .linenr { font-size:smaller }
+ .code-highlighted {background-color:#ffff00;}
+ .org-info-js_info-navigation { border-style:none; }
+ #org-info-js_console-label { font-size:10px; font-weight:bold;
+ white-space:nowrap; }
+ .org-info-js_search-highlight {background-color:#ffff00; color:#000000;
+ font-weight:bold; }
+ /*]]>*/-->
+</style>
+<LINK href="stylesheet.css" rel="stylesheet" type="text/css">
+<script type="text/javascript">
+<!--/*--><![CDATA[/*><!--*/
+ function CodeHighlightOn(elem, id)
+ {
+ var target = document.getElementById(id);
+ if(null != target) {
+ elem.cacheClassElem = elem.className;
+ elem.cacheClassTarget = target.className;
+ target.className = "code-highlighted";
+ elem.className = "code-highlighted";
+ }
+ }
+ function CodeHighlightOff(elem, id)
+ {
+ var target = document.getElementById(id);
+ if(elem.cacheClassElem)
+ elem.className = elem.cacheClassElem;
+ if(elem.cacheClassTarget)
+ target.className = elem.cacheClassTarget;
+ }
+/*]]>*///-->
+</script>
+</head>
+<body>
+<div id="content">
+
+<h1 class="title">Getting Started with Nitrogen</h1>
+
+<p><a href="./index.html">Getting Started</a> | <a href="./api.html">API</a> | <a href="./elements.html">Elements</a> | <a href="./actions.html">Actions</a> | <a href="./validators.html">Validators</a> | <a href="./handlers.html">Handlers</a> | About
+</p>
+
+
+<div id="table-of-contents">
+<h2>Table of Contents</h2>
+<div id="text-table-of-contents">
+<ul>
+<li><a href="#sec-1">1 Resources </a></li>
+<li><a href="#sec-2">2 Versions </a></li>
+<li><a href="#sec-3">3 Thanks </a></li>
+<li><a href="#sec-4">4 Documentation </a></li>
+</ul>
+</div>
+</div>
+
+<div id="outline-container-1" class="outline-2">
+<h2 id="sec-1"><span class="section-number-2">1</span> Resources </h2>
+<div class="outline-text-2" id="text-1">
+
+
+<ul>
+<li>
+NitrogenProject.com - <a href="http://nitrogenproject.com">http://nitrogenproject.com</a>
+
+</li>
+<li>
+Source Code - <a href="http://github.com/rklophaus/nitrogen">http://github.com/rklophaus/nitrogen</a>
+
+</li>
+<li>
+Donations - <a href="http://pledgie.com/campaigns/2057">http://pledgie.com/campaigns/2057</a>
+
+</li>
+<li>
+Mailing List - <a href="http://groups.google.com/group/nitrogenweb">http://groups.google.com/group/nitrogenweb</a>
+
+</li>
+<li>
+Bugs and Issues - <a href="http://nitrogen.lighthouseapp.com">http://nitrogen.lighthouseapp.com</a>
+
+</li>
+</ul>
+</div>
+
+</div>
+
+<div id="outline-container-2" class="outline-2">
+<h2 id="sec-2"><span class="section-number-2">2</span> Versions </h2>
+<div class="outline-text-2" id="text-2">
+
+
+<p>
+Nitrogen relies on some or all of the following software:
+</p>
+<ul>
+<li>
+<b>Erlang R13B03</b> or later - <a href="http://erlang.org">http://erlang.org</a>
+
+</li>
+<li>
+<b>SimpleBridge</b> - Common interface to Erlang HTTP servers.
+<ul>
+<li>
+Git Repo: git://github.com/rklophaus/SimpleBridge.git
+</li>
+<li>
+Commit: 652a3d1
+
+</li>
+</ul>
+</li>
+<li>
+<b>mochiweb</b> - HTTP Server (Optional)
+<ul>
+<li>
+SVN Repo: <a href="http://mochiweb.googlecode.com/svn/trunk/">http://mochiweb.googlecode.com/svn/trunk/</a>
+</li>
+<li>
+Revision: 133
+
+</li>
+</ul>
+</li>
+<li>
+<b>yaws</b> - HTTP Server - <a href="http://yaws.hyber.org/">http://yaws.hyber.org/</a> (Optional)
+<ul>
+<li>
+Source: <a href="http://yaws.hyber.org/download/yaws-1.87.tar.gz">http://yaws.hyber.org/download/yaws-1.87.tar.gz</a>
+
+</li>
+</ul>
+</li>
+<li>
+<b>JQuery 1.4.2</b> - <a href="http://jquery.com">http://jquery.com</a>
+
+</li>
+<li>
+<b>JQuery UI 1.8rc2</b> - <a href="http://jqueryui.com">http://jqueryui.com</a>
+
+</li>
+<li>
+<b>Live Validation 1.3</b> - <a href="http://livevalidation.com/">http://livevalidation.com/</a>
+
+</li>
+</ul>
+</div>
+
+</div>
+
+<div id="outline-container-3" class="outline-2">
+<h2 id="sec-3"><span class="section-number-2">3</span> Thanks </h2>
+<div class="outline-text-2" id="text-3">
+
+
+<p>
+Sincere thanks to all the people who have helped make Nitrogen great, including:
+</p>
+<ul>
+<li>
+Rusty Klophaus (@rklophaus)
+</li>
+<li>
+Chris Williams (@voodootikigod)
+</li>
+<li>
+Joel Reymont (@wagerlabs)
+</li>
+<li>
+Tom McNulty
+</li>
+<li>
+Martin Scholl (@zeit_geist)
+</li>
+<li>
+Dave Peticolas
+</li>
+<li>
+Jon Gretar Borgthorsson (@jongretar)
+</li>
+<li>
+Dan Bravender (@dbravender)
+</li>
+<li>
+Taavi Talvik
+</li>
+<li>
+Torbjorn Tornkvist (@kruskakli)
+</li>
+<li>
+Marius A. Eriksen (@marius)
+</li>
+<li>
+Michael Mullis
+</li>
+<li>
+John Dragos
+</li>
+<li>
+Benjamin Nortier (@bjnortier)
+</li>
+<li>
+Jay Doane
+</li>
+<li>
+Robert Schonberger
+</li>
+<li>
+Yurii Rashkovskii (@yrashk)
+</li>
+<li>
+Ville Koivula
+
+</li>
+</ul>
+
+<p>Roughly sorted by date of contribution. Send your twitter handles to @rklophaus
+</p>
+</div>
+
+</div>
+
+<div id="outline-container-4" class="outline-2">
+<h2 id="sec-4"><span class="section-number-2">4</span> Documentation </h2>
+<div class="outline-text-2" id="text-4">
+
+
+<p>
+This documentation is created using org-mode. To contribute updates
+or corrections, contact Rusty Klophaus (@rklophaus) or fork and
+update the code in <a href="http://github.com/rklophaus/nitrogen">http://github.com/rklophaus/nitrogen</a> under the
+<code>./docs/org-mode</code> directory
+</p></div>
+</div>
+<div id="postamble">
+<p class="author"> Author: Rusty Klophaus (@rklophaus)
+<a href="mailto:">&lt;&gt;</a>
+</p>
+<p class="date"> Date: 2010-03-07 13:40:17 EST</p>
+<p class="creator">HTML generated by org-mode 6.33f in emacs 22</p>
+</div>
+</div>
+</body>
+</html>
Oops, something went wrong.

0 comments on commit 16099e1

Please sign in to comment.