changeset 387:23d075ce1e48

add website/src/Shared.luan
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 23 Apr 2015 18:16:15 -0600
parents db23f654f87d
children 12ee9a336b95
files website/src/Shared.luan website/src/diff.html.luan website/src/docs.html.luan website/src/manual.html.luan website/src/pil.html.luan website/src/tutorial.html.luan
diffstat 6 files changed, 14 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
diff -r db23f654f87d -r 23d075ce1e48 website/src/Shared.luan
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/website/src/Shared.luan	Thu Apr 23 18:16:15 2015 -0600
@@ -0,0 +1,4 @@
+
+function header() %>
+	<div><small><a href="/">Luan</a></small></div>
+<% end
diff -r db23f654f87d -r 23d075ce1e48 website/src/diff.html.luan
--- a/website/src/diff.html.luan	Thu Apr 23 18:09:12 2015 -0600
+++ b/website/src/diff.html.luan	Thu Apr 23 18:16:15 2015 -0600
@@ -1,6 +1,7 @@
 local Io = require "luan:Io"
 local Html = require "luan:Html"
 local Http = require "luan:web/Http"
+local Shared = require "site:/Shared"
 
 
 function service()
@@ -12,7 +13,7 @@
 		body = function() %>
 
 <div container>
-<div><small><a href="/">Luan</a></small></div>
+<% Shared.header() %>
 <h1>How Luan differs from Lua</h1>
 
 <p>This document explains how Luan differs from <a href="http://www.lua.org">Lua</a> as described in the <a href="http://www.lua.org/manual/5.3/">Lua 5.3 Reference Manual</a>.</p>
diff -r db23f654f87d -r 23d075ce1e48 website/src/docs.html.luan
--- a/website/src/docs.html.luan	Thu Apr 23 18:09:12 2015 -0600
+++ b/website/src/docs.html.luan	Thu Apr 23 18:16:15 2015 -0600
@@ -1,6 +1,7 @@
 local Io = require "luan:Io"
 local Html = require "luan:Html"
 local Http = require "luan:web/Http"
+local Shared = require "site:/Shared"
 
 
 function service()
@@ -11,7 +12,7 @@
 <%		end;
 		body = function() %>
 		<div container>
-			<div><small><a href="/">Luan</a></small></div>
+			<% Shared.header() %>
 			<h1 margin-bottom="1em">Luan Documentation</h1>
 
 			<big>
diff -r db23f654f87d -r 23d075ce1e48 website/src/manual.html.luan
--- a/website/src/manual.html.luan	Thu Apr 23 18:09:12 2015 -0600
+++ b/website/src/manual.html.luan	Thu Apr 23 18:16:15 2015 -0600
@@ -1,6 +1,7 @@
 local Io = require "luan:Io"
 local Html = require "luan:Html"
 local Http = require "luan:web/Http"
+local Shared = require "site:/Shared"
 
 
 function service()
@@ -12,7 +13,7 @@
 		body = function() %>
 
 <div container>
-<div><small><a href="/">Luan</a></small></div>
+<% Shared.header() %>
 
 <h1>Luan Reference Manual</h1>
 
diff -r db23f654f87d -r 23d075ce1e48 website/src/pil.html.luan
--- a/website/src/pil.html.luan	Thu Apr 23 18:09:12 2015 -0600
+++ b/website/src/pil.html.luan	Thu Apr 23 18:16:15 2015 -0600
@@ -1,6 +1,7 @@
 local Io = require "luan:Io"
 local Html = require "luan:Html"
 local Http = require "luan:web/Http"
+local Shared = require "site:/Shared"
 
 
 function service()
@@ -11,7 +12,7 @@
 <%		end;
 		body = function() %>
 		<div container>
-			<div><small><a href="/">Luan</a></small></div>
+			<% Shared.header() %>
 			<h1 margin-bottom="1em">Programming in Lua</h1>
 
 			<p>Even though <a href="http://www.lua.org/pil/">Programming in Lua</a> is about Lua, not Luan, it still serves as an excellent introduction to Luan since the languages are so close.</p>
diff -r db23f654f87d -r 23d075ce1e48 website/src/tutorial.html.luan
--- a/website/src/tutorial.html.luan	Thu Apr 23 18:09:12 2015 -0600
+++ b/website/src/tutorial.html.luan	Thu Apr 23 18:16:15 2015 -0600
@@ -1,6 +1,7 @@
 local Io = require "luan:Io"
 local Html = require "luan:Html"
 local Http = require "luan:web/Http"
+local Shared = require "site:/Shared"
 
 
 function service()
@@ -12,7 +13,7 @@
 		body = function() %>
 
 <div container>
-<div><small><a href="/">Luan</a></small></div>
+<% Shared.header() %>
 <h1 margin-bottom="1em">Luan Tutorial</h1>