From 805139d2ca070869d45c5d0e1bfdb6df5ed32fbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20A=2E=20Ortega=20Froysa?= Date: Tue, 8 Nov 2022 15:58:20 +0100 Subject: [PATCH] Add example file. --- .gitignore | 1 + example/.isidore-version | 1 + example/config.php | 5 +++++ example/site/blog.html.php | 23 +++++++++++++++++++++++ example/site/blog/000-first.cfg.php | 4 ++++ example/site/blog/000-first.html.php | 9 +++++++++ example/site/index.html.php | 10 ++++++++++ example/site/static-file.txt | 1 + example/templates/footer.html.php | 2 ++ example/templates/header.html.php | 7 +++++++ 10 files changed, 63 insertions(+) create mode 100644 .gitignore create mode 100644 example/.isidore-version create mode 100644 example/config.php create mode 100644 example/site/blog.html.php create mode 100644 example/site/blog/000-first.cfg.php create mode 100644 example/site/blog/000-first.html.php create mode 100644 example/site/index.html.php create mode 100644 example/site/static-file.txt create mode 100644 example/templates/footer.html.php create mode 100644 example/templates/header.html.php diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ea1472e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +output/ diff --git a/example/.isidore-version b/example/.isidore-version new file mode 100644 index 0000000..6e8bf73 --- /dev/null +++ b/example/.isidore-version @@ -0,0 +1 @@ +0.1.0 diff --git a/example/config.php b/example/config.php new file mode 100644 index 0000000..0fc9377 --- /dev/null +++ b/example/config.php @@ -0,0 +1,5 @@ + diff --git a/example/site/blog.html.php b/example/site/blog.html.php new file mode 100644 index 0000000..16a1415 --- /dev/null +++ b/example/site/blog.html.php @@ -0,0 +1,23 @@ + + +

+Welcome to my blog page! Here's a list of my current entries: +

+ + + + diff --git a/example/site/blog/000-first.cfg.php b/example/site/blog/000-first.cfg.php new file mode 100644 index 0000000..e2b59f5 --- /dev/null +++ b/example/site/blog/000-first.cfg.php @@ -0,0 +1,4 @@ + diff --git a/example/site/blog/000-first.html.php b/example/site/blog/000-first.html.php new file mode 100644 index 0000000..c4204c6 --- /dev/null +++ b/example/site/blog/000-first.html.php @@ -0,0 +1,9 @@ + +

My first blog post.

+ diff --git a/example/site/index.html.php b/example/site/index.html.php new file mode 100644 index 0000000..1277280 --- /dev/null +++ b/example/site/index.html.php @@ -0,0 +1,10 @@ + +

+Hello, World! This is an example page. +

+ diff --git a/example/site/static-file.txt b/example/site/static-file.txt new file mode 100644 index 0000000..4432af5 --- /dev/null +++ b/example/site/static-file.txt @@ -0,0 +1 @@ +A test file. diff --git a/example/templates/footer.html.php b/example/templates/footer.html.php new file mode 100644 index 0000000..7fb2bd6 --- /dev/null +++ b/example/templates/footer.html.php @@ -0,0 +1,2 @@ + + diff --git a/example/templates/header.html.php b/example/templates/header.html.php new file mode 100644 index 0000000..492ee5a --- /dev/null +++ b/example/templates/header.html.php @@ -0,0 +1,7 @@ + + + + <?= $title ?> | <?= $site_name?> + + +