From 73fbcc1f649b21547d368658a3b074da3166cb96 Mon Sep 17 00:00:00 2001 From: PhilipWitte Date: Fri, 20 Feb 2015 08:54:07 -0800 Subject: [PATCH] Fixup website support page and other minor touches. --- tools/website.tmpl | 17 +++++++++-------- web/download.txt | 11 +++++++---- web/question.txt | 28 ++++++++++++++-------------- web/support.txt | 42 ++++++++++++++++++++++++------------------ 4 files changed, 54 insertions(+), 44 deletions(-) diff --git a/tools/website.tmpl b/tools/website.tmpl index ba08c9c4cc..bc3ed8e2c5 100644 --- a/tools/website.tmpl +++ b/tools/website.tmpl @@ -65,7 +65,7 @@
-

Nim looks like this..

+

Nim is simple..

 # compute average line length
 var
@@ -81,7 +81,7 @@ echo("Average line length: ",
 
-

..and this...

+

..and type safe...

 # create and greet someone
 type Person = object
@@ -92,7 +92,7 @@ echo("Average line length: ",
   echo "Hi, I'm ", p.name, "."
   echo "I am ", p.age, " years old."
 
-var p = Person(name:"Jon", age:18)
+let p = Person(name:"Jon", age:18)
 p.greet() # or greet(p)
 
@@ -108,7 +108,7 @@ p.greet() # or greet(p) header: "<stdio.h>".} # ..and use it... -var x: cint +var x: cint stdin.unsafeScanf("%d", addr x)

Compile and run with:
    $ nim c -r example.nim

@@ -116,10 +116,10 @@ stdin.unsafeScanf("%d", addr x

..and DSLs are too...

-# a simple web server
-import jester, asyncdispatch, htmlgen
+# a simple html server
+import
+  jester, asyncdispatch, htmlgen
 
-# using jester commands
 routes:
   get "/":
     resp h1("Hello world")
@@ -146,7 +146,7 @@ runForever()
 #         end for
           
# end if -# if len(c.ticker) > 0 and currentTab != "support": +# if len(c.ticker) > 0:

Latest News