Began adding Makefile to generate pages with header/footer
parent
e9a130ad4b
commit
ab785a1f5f
|
@ -1 +1,2 @@
|
||||||
node_modules
|
node_modules
|
||||||
|
webroot
|
||||||
|
|
|
@ -0,0 +1,37 @@
|
||||||
|
# Builds website
|
||||||
|
#
|
||||||
|
|
||||||
|
header := _includes/header.html
|
||||||
|
footer := _includes/footer.html
|
||||||
|
|
||||||
|
input_html := $(wildcard *.html)
|
||||||
|
input_images := $(wildcard images/*.png)
|
||||||
|
input_scripts := $(shell find scripts/ -name '*.js')
|
||||||
|
|
||||||
|
outdir := webroot
|
||||||
|
output_html := $(addprefix $(outdir)/, $(input_html))
|
||||||
|
output_images := $(addprefix $(outdir)/, $(input_images))
|
||||||
|
output_scripts := $(addprefix $(outdir)/, $(input_scripts))
|
||||||
|
|
||||||
|
.PHONY: default clean
|
||||||
|
|
||||||
|
default: $(outdir) $(output_html) $(output_images) \
|
||||||
|
$(output_scripts) $(outdir)/style.css
|
||||||
|
|
||||||
|
$(outdir):
|
||||||
|
mkdir -p $@ $@/images $@/scripts/ex
|
||||||
|
|
||||||
|
$(outdir)/style.css: style.css | $(outdir)
|
||||||
|
cp $< $@
|
||||||
|
|
||||||
|
$(outdir)/scripts/%.js: scripts/%.js | $(outdir)
|
||||||
|
cp -r $< $@
|
||||||
|
|
||||||
|
$(outdir)/images/%.png: images/%.png | $(outdir)
|
||||||
|
cp -r $< $@
|
||||||
|
|
||||||
|
$(outdir)/%.html: %.html $(header) $(footer) | $(outdir)
|
||||||
|
cat $(header) $< $(footer) > $@
|
||||||
|
|
||||||
|
clean:
|
||||||
|
${RM} -r webroot
|
|
@ -0,0 +1,2 @@
|
||||||
|
Files in this directory should not be uploaded to the web root. They are used by
|
||||||
|
the build script as an alternative to dynamic pages (e.g. with PHP).
|
|
@ -0,0 +1,16 @@
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<p class="copyright">
|
||||||
|
Copyright © 2011 <a href="http://mikegerwitz.com">Mike Gerwitz</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<script type="text/javascript"
|
||||||
|
src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js">
|
||||||
|
</script>
|
||||||
|
<script type="text/javascript"
|
||||||
|
src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.11/jquery-ui.min.js">
|
||||||
|
</script>
|
||||||
|
<script type="text/javascript" src="scripts/ease-full.min.js"></script>
|
||||||
|
<script type="text/javascript" src="scripts/ui.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,34 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>ease.js</title>
|
||||||
|
<link type="text/css" rel="stylesheet" href="style.css" />
|
||||||
|
<link type="text/css" rel="stylesheet"
|
||||||
|
href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.10/themes/base/jquery-ui.css" />
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id="header">
|
||||||
|
<div id="header-content">
|
||||||
|
<h1>ease<span class="suffix">js</span></h1>
|
||||||
|
<h2 class="desc">Classical Object-Oriented Framework</h2>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="menu">
|
||||||
|
<ul>
|
||||||
|
<li class="selected"><a href="/">About</a></li>
|
||||||
|
<li><a href="manual.html">Manual (Single Page)</a></li>
|
||||||
|
<li><a href="manual/">Manual (Split)</a></li>
|
||||||
|
<li><a href="https://github.com/mikegerwitz/easejs">Source Code</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="content">
|
||||||
|
<noscript>
|
||||||
|
<strong>Please enable JavaScript to take advantage of the interactive
|
||||||
|
features of this website. Don't worry - it's all
|
||||||
|
<a href="http://www.gnu.org/philosophy/free-sw.html">free software</a>.
|
||||||
|
You can find the source code to this website via the source code link
|
||||||
|
above within the 'website' branch.
|
||||||
|
</strong>
|
||||||
|
</noscript>
|
67
index.html
67
index.html
|
@ -1,80 +1,29 @@
|
||||||
<!DOCTYPE html>
|
<p>
|
||||||
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>ease.js</title>
|
|
||||||
<link type="text/css" rel="stylesheet" href="style.css" />
|
|
||||||
<link type="text/css" rel="stylesheet"
|
|
||||||
href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.10/themes/base/jquery-ui.css" />
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div id="header">
|
|
||||||
<div id="header-content">
|
|
||||||
<h1>ease<span class="suffix">js</span></h1>
|
|
||||||
<h2 class="desc">Classical Object-Oriented Framework</h2>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="menu">
|
|
||||||
<ul>
|
|
||||||
<li class="selected"><a href="/">About</a></li>
|
|
||||||
<li><a href="manual.html">Manual (Single Page)</a></li>
|
|
||||||
<li><a href="manual/">Manual (Split)</a></li>
|
|
||||||
<li><a href="https://github.com/mikegerwitz/easejs">Source Code</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="content">
|
|
||||||
<noscript>
|
|
||||||
<strong>Please enable JavaScript to take advantage of the interactive
|
|
||||||
features of this website. Don't worry - it's all
|
|
||||||
<a href="http://www.gnu.org/philosophy/free-sw.html">free software</a>.
|
|
||||||
You can find the source code to this website via the source code link
|
|
||||||
above within the 'website' branch.
|
|
||||||
</strong>
|
|
||||||
</noscript>
|
|
||||||
<p>
|
|
||||||
ease.js is a Classical Object-Oriented framework for JavaScript,
|
ease.js is a Classical Object-Oriented framework for JavaScript,
|
||||||
intended to “ease” the transition into JavaScript from other
|
intended to “ease” the transition into JavaScript from other
|
||||||
Object-Oriented languages. Features include:
|
Object-Oriented languages. Features include:
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>Simple and intuitive class definitions</li>
|
<li>Simple and intuitive class definitions</li>
|
||||||
<li>Classical inheritance</li>
|
<li>Classical inheritance</li>
|
||||||
<li>Abstract classes and methods</li>
|
<li>Abstract classes and methods</li>
|
||||||
<li>Interfaces</li>
|
<li>Interfaces</li>
|
||||||
<li>Access modifiers (public, protected and private)</li>
|
<li>Access modifiers (public, protected and private)</li>
|
||||||
<li>Static and constant members</li>
|
<li>Static and constant members</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
ease.js is a framework, not a compiler. It may be used wherever
|
ease.js is a framework, not a compiler. It may be used wherever
|
||||||
JavaScript may be used, including with other compilers/parsers. ease.js
|
JavaScript may be used, including with other compilers/parsers. ease.js
|
||||||
also provides support for older, pre-ES5 environments by gracefully
|
also provides support for older, pre-ES5 environments by gracefully
|
||||||
degrading features (such as visibility support), but remaining
|
degrading features (such as visibility support), but remaining
|
||||||
functionally consistent.
|
functionally consistent.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<strong>This project is under heavy development.</strong> However, the
|
<strong>This project is under heavy development.</strong> However, the
|
||||||
<tt>master</tt> branch is always guaranteed to be in a working, stable
|
<tt>master</tt> branch is always guaranteed to be in a working, stable
|
||||||
state. It is currently in use within a production system at the author's
|
state. It is currently in use within a production system at the author's
|
||||||
place of employment. Feel free to use ease.js in your own projects.
|
place of employment. Feel free to use ease.js in your own projects.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
|
||||||
|
|
||||||
<p class="copyright">
|
|
||||||
Copyright © 2011 <a href="http://mikegerwitz.com">Mike Gerwitz</a>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<script type="text/javascript"
|
|
||||||
src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js">
|
|
||||||
</script>
|
|
||||||
<script type="text/javascript"
|
|
||||||
src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.11/jquery-ui.min.js">
|
|
||||||
</script>
|
|
||||||
<script type="text/javascript" src="scripts/ease-full.min.js"></script>
|
|
||||||
<script type="text/javascript" src="scripts/ui.js"></script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
|
|
Loading…
Reference in New Issue