Added example to test out that it's working.

This commit is contained in:
Neil Edelman 2016-10-19 22:54:21 -04:00
parent c2692aa3aa
commit 6c5dd43af4
19 changed files with 76 additions and 0 deletions

29
example/.index.html Normal file
View File

@ -0,0 +1,29 @@
<!doctype html public "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Arr! @(pwd){/}</title>
<meta name = "Content-type" http-equiv = "Content-Type" content = "text/html; charset=us-ascii">
<meta name = "Keywords" content = "@(pwd){, }arr">
<meta name = "Author" content = "Neil">
<meta name = "Generator" content = "This pristine code lies unmarred by infantile editors!">
</head>
<body>
<p>
Date: @(now)
</p>
<p>
@(content)</p>
<ul>
@(files){<li>
<img src = "@(fileicon)" alt = "[ @(filealt) ]"> This is the <a href = "@(filehref)">@(filename)</a>;
desciption: @(filedesc)</li>
}</ul>
<p>
From http://something/@(pwd){/} or / is @(root){/}.
</p>
</body>
</html>

0
example/.index.html.d Normal file
View File

22
example/.newsfeed.rss Normal file
View File

@ -0,0 +1,22 @@
<?xml version = "1.0" encoding = "UTF-8" ?>
<!DOCTYPE rss>
<rss version = "2.0"><channel>
<title>Arr</title>
<description>Yaarrr, news from afar.</description>
<language>en</language>
<pubdate>@(now)</pubdate>
<lastbuilddate>@(now)</lastbuilddate>
~
<item>
<title>@(title)</title>
<link>@(pwd){/}@(newsname)</link>
<description>
@(news) </description>
<author>Neil</author>
<pubdate>@(date)</pubdate>
</item>
~
</channel></rss>

11
example/.sitemap.xml Normal file
View File

@ -0,0 +1,11 @@
<?xml version = "1.0" encoding = "UTF-8" ?>
<!DOCTYPE xml>
<urlset xmlns = "http://www.google.com/schemas/sitemap/0.84">
~
<url>
<loc>http://something/@(pwd){/}</loc>
<lastmod>@(now)</lastmod>
</url>
~
</urlset>

1
example/a Normal file
View File

@ -0,0 +1 @@
Qux.

1
example/a.d Normal file
View File

@ -0,0 +1 @@
This is a description of a.

1
example/a.txt Normal file
View File

@ -0,0 +1 @@
This is a.txt

1
example/a.txt.d Normal file
View File

@ -0,0 +1 @@
This is a description of a.txt.

0
example/bar.d Normal file
View File

1
example/baz/link.link Normal file
View File

@ -0,0 +1 @@
https://w3.org/

1
example/baz/link.link.d Normal file
View File

@ -0,0 +1 @@
This is an external link.

1
example/baz/news Normal file
View File

@ -0,0 +1 @@
OhNozzz!!11

2
example/baz/news.news Normal file
View File

@ -0,0 +1,2 @@
2012-12-21
World Ends

1
example/content.d Normal file
View File

@ -0,0 +1 @@
This is content.d, overwriting index.d. The index.d appears in the links to this page, however.

BIN
example/dir.jpeg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 552 B

3
example/dir.jpeg.d Normal file
View File

@ -0,0 +1,3 @@
This is a hard-coded file named dir.jpeg that's recognised by @(fileicon)
with a directory. Also, this file has a custom icon dir.jpeg.d.jpeg;
&lt;*.d.jpeg&gt; makes it so.

BIN
example/dir.jpeg.d.jpeg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 552 B

BIN
example/file.jpeg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 707 B

1
example/file.jpeg.d Normal file
View File

@ -0,0 +1 @@
This is the hard-coded file icon, file.jpeg.