Skip to content

Commit 0c7c81a

Browse files
authored
Merge pull request #31 from mkantor/unrouteable-content-files
New feature: unrouteable content files.
2 parents 64b4049 + 8cc0562 commit 0c7c81a

File tree

16 files changed

+59
-20
lines changed

16 files changed

+59
-20
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
i am not hidden, but my parent directory is
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
i am prefixed with _
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
1: {{get [/]._partially-hidden-file}}
2+
2: {{get [/].[_partially-hidden-directory/].non-hidden-file}}
3+
3: {{get [/].[non-hidden-directory/]._partially-hidden-file}}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
i am prefixed with _, but my parent directory is not prefixed with _
File renamed without changes.
File renamed without changes.
File renamed without changes.

samples/realistic-advanced/error-handler.html.hbs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
{{#>layout.html.hbs page-title="Error"}}
1+
{{#>_layout.html.hbs page-title="Error"}}
22
<header>
33
<h1>Error</h1>
44
</header>
55

6-
<nav>{{get "navigation"}}</nav>
6+
<nav>{{get "/_navigation"}}</nav>
77

88
<main>
99
<p>
@@ -42,4 +42,4 @@
4242
{{#if (eq error-code 505)}}HTTP Version Not Supported{{/if}}
4343
</p>
4444
</main>
45-
{{/layout.html.hbs}}
45+
{{/_layout.html.hbs}}

samples/realistic-advanced/gallery.html.hbs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{#>layout.html.hbs page-title="Image gallery"}}
1+
{{#>_layout.html.hbs page-title="Image gallery"}}
22
<style>
33
#gallery img {
44
height: 50vh;
@@ -13,7 +13,7 @@
1313
<h1>Image gallery</h1>
1414
</header>
1515

16-
<nav>{{get "navigation"}}</nav>
16+
<nav>{{get "/_navigation"}}</nav>
1717

1818
<figure id="gallery">
1919
<img src="gallery/1" />
@@ -35,4 +35,4 @@
3535
})
3636
}
3737
</script>
38-
{{/layout.html.hbs}}
38+
{{/_layout.html.hbs}}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
{{#>layout.html.hbs}}
1+
{{#>_layout.html.hbs}}
22
<header>
33
<h1>Welcome to my fancy website!</h1>
44
</header>
55

6-
<nav>{{get "/navigation"}}</nav>
6+
<nav>{{get "/_navigation"}}</nav>
77

88
<article>
99
<figure><img src="/dance" /></figure>
@@ -13,4 +13,4 @@
1313
<footer>
1414
The current <a href="/now">time</a> is {{get "/now"}}.
1515
</footer>
16-
{{/layout.html.hbs}}
16+
{{/_layout.html.hbs}}

0 commit comments

Comments
 (0)