From 2f9fd32770a283a9d763ab993979be3152401a49 Mon Sep 17 00:00:00 2001 From: Guillaume Gelin Date: Tue, 6 Jan 2015 15:09:12 +0100 Subject: [PATCH 1/2] Make website.tmpl line endings consistant (using Unix style) --- tools/website.tmpl | 192 ++++++++++++++++++++++----------------------- 1 file changed, 96 insertions(+), 96 deletions(-) diff --git a/tools/website.tmpl b/tools/website.tmpl index 0c059fb871..ff29c160b2 100644 --- a/tools/website.tmpl +++ b/tools/website.tmpl @@ -1,23 +1,23 @@ #! stdtmpl | standard #proc generateHTMLPage(c: var TConfigData, currentTab, content, rss: string): string = # result = "" - + - - - $c.projectTitle + + + $c.projectTitle - + #if len(rss) > 0: #end if - - - # if currentTab == "index":
# else:
-# end -
+# end +
-# if currentTab == "index": -
+# if currentTab == "index": +
-
-
-

Nim looks like this..

-
# compute average line length
-var
-  sum = 0
-  count = 0
-
-for line in stdin.lines:
-  sum += line.len
-  count += 1
-
-echo("Average line length: ",
-  if count > 0: sum / count else: 0)
-
-
-
-

..and this...

-
# create and greet someone
-type Person = object
-  name: string
-  age: int
-
-proc greet(p: Person) =
-  echo "Hi, I'm ", p.name, "."
-  echo "I am ", p.age, " years old."
-
-var p = Person(name:"Jon", age:18)
-p.greet() # or greet(p)
-
-
+
+
+

Nim looks like this..

+
# compute average line length
+var
+  sum = 0
+  count = 0
+
+for line in stdin.lines:
+  sum += line.len
+  count += 1
+
+echo("Average line length: ",
+  if count > 0: sum / count else: 0)
+
+
+
+

..and this...

+
# create and greet someone
+type Person = object
+  name: string
+  age: int
+
+proc greet(p: Person) =
+  echo "Hi, I'm ", p.name, "."
+  echo "I am ", p.age, " years old."
+
+var p = Person(name:"Jon", age:18)
+p.greet() # or greet(p)
+
+

Why should I be excited?

@@ -129,14 +129,14 @@ View at: localhost:5000

-
-
-
-
-
-# end -
# end if -

Latest News

+

Latest News

- -
-
+# end if + + + +
-
-
-
-
+
+
+
+
- $content -
-
-
- - - - + $content + +
+
+ + + +