Browse Source

Added example to test out that it's working.

master
Neil Edelman 5 years ago
parent
commit
6c5dd43af4
  1. 29
      example/.index.html
  2. 0
      example/.index.html.d
  3. 22
      example/.newsfeed.rss
  4. 11
      example/.sitemap.xml
  5. 1
      example/a
  6. 1
      example/a.d
  7. 1
      example/a.txt
  8. 1
      example/a.txt.d
  9. 0
      example/bar.d
  10. 1
      example/baz/link.link
  11. 1
      example/baz/link.link.d
  12. 1
      example/baz/news
  13. 2
      example/baz/news.news
  14. 1
      example/content.d
  15. BIN
      example/dir.jpeg
  16. 3
      example/dir.jpeg.d
  17. BIN
      example/dir.jpeg.d.jpeg
  18. BIN
      example/file.jpeg
  19. 1
      example/file.jpeg.d

29
example/.index.html

@ -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

22
example/.newsfeed.rss

@ -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

@ -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

@ -0,0 +1 @@
Qux.

1
example/a.d

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

1
example/a.txt

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

1
example/a.txt.d

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

0
example/bar.d

1
example/baz/link.link

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

1
example/baz/link.link.d

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

1
example/baz/news

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

2
example/baz/news.news

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

1
example/content.d

@ -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

Binary file not shown.

After

Width:  |  Height:  |  Size: 552 B

3
example/dir.jpeg.d

@ -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

Binary file not shown.

After

Width:  |  Height:  |  Size: 552 B

BIN
example/file.jpeg

Binary file not shown.

After

Width:  |  Height:  |  Size: 707 B

1
example/file.jpeg.d

@ -0,0 +1 @@
This is the hard-coded file icon, file.jpeg.
Loading…
Cancel
Save