diff --git a/.gitignore b/.gitignore index 3c3629e..9cc2107 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ node_modules +webroot diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..9029352 --- /dev/null +++ b/Makefile @@ -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 diff --git a/_includes/README b/_includes/README new file mode 100644 index 0000000..774333a --- /dev/null +++ b/_includes/README @@ -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). diff --git a/_includes/footer.html b/_includes/footer.html new file mode 100644 index 0000000..d7ea4fe --- /dev/null +++ b/_includes/footer.html @@ -0,0 +1,16 @@ + + + + + + + + + + diff --git a/_includes/header.html b/_includes/header.html new file mode 100644 index 0000000..63f5727 --- /dev/null +++ b/_includes/header.html @@ -0,0 +1,34 @@ + + + + ease.js + + + + + + + + +
+ diff --git a/index.html b/index.html index aa3b939..68d4334 100644 --- a/index.html +++ b/index.html @@ -1,80 +1,29 @@ - +

+ ease.js is a Classical Object-Oriented framework for JavaScript, + intended to “ease” the transition into JavaScript from other + Object-Oriented languages. Features include: +

- - - ease.js - - - - - + - +

+ ease.js is a framework, not a compiler. It may be used wherever + JavaScript may be used, including with other compilers/parsers. ease.js + also provides support for older, pre-ES5 environments by gracefully + degrading features (such as visibility support), but remaining + functionally consistent. +

-
- -

- ease.js is a Classical Object-Oriented framework for JavaScript, - intended to “ease” the transition into JavaScript from other - Object-Oriented languages. Features include: -

- - - -

- ease.js is a framework, not a compiler. It may be used wherever - JavaScript may be used, including with other compilers/parsers. ease.js - also provides support for older, pre-ES5 environments by gracefully - degrading features (such as visibility support), but remaining - functionally consistent. -

- -

- This project is under heavy development. However, the - master branch is always guaranteed to be in a working, stable - 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. -

-
- - - - - - - - - +

+ This project is under heavy development. However, the + master branch is always guaranteed to be in a working, stable + 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. +