changeset 5:dcae71b1c3b4

Changed sample code, removed a debug logging statement.
author Atul Varma <varmaa@toolness.com>
date Mon, 05 Jan 2009 17:14:14 -0800
parents ccc558eb70db
children dc88b0e46f2d
files samplecode.js thingy.js
diffstat 2 files changed, 19 insertions(+), 18 deletions(-) [+]
line wrap: on
line diff
--- a/samplecode.js	Mon Jan 05 17:02:01 2009 -0800
+++ b/samplecode.js	Mon Jan 05 17:14:14 2009 -0800
@@ -1,22 +1,24 @@
-// Hello, this is sample code.
-//
-// How do you feel about chutney.
-//
-// I don't //like// chutney, do you?
-//
-// No.  It's utter **hogwash**.
+// = Sample Code =
 //
-// * Hello.
-// * There.
-// * Dood.
-//
+// This is just a test of the Thingy documentation system.
+
+var BEANS = 1;
 
-// {{{
-//   function blarg() {
-//   }
-// }}}
+// == Functions ==
+
+// ==== {{{blarg()}}} ====
+//
+// This function takes no parameters and returns the string
+// {{{blarg}}}.  It's pretty cool that way.
 
 function blarg() {
-  let k = 1;
-  return 1;
+  return "blarg";
 }
+
+// ==== {{{foo(x)}}} ====
+//
+// This function returns the parameter multiplied by 2.
+
+function foo(x) {
+  return x*2;
+}
--- a/thingy.js	Mon Jan 05 17:02:01 2009 -0800
+++ b/thingy.js	Mon Jan 05 17:14:14 2009 -0800
@@ -52,7 +52,6 @@
     blocks,
     function(i) {
       creole.parse($("#content").get(0), this.text);
-      console.log(this.lineno);
     });
 };