Skip to content

Conversation

mkantor
Copy link
Owner

@mkantor mkantor commented Oct 29, 2020

With this change, files whose names start with underscore (e.g. _foo.html) are no longer accessible from user requests. They're still part of the registry and can be included in templates using the get helper or partial syntax.

This is useful for partials like headers, footers, etc that shouldn't be served out of context. Prior to this change you could curl http://website.com/header which was pretty weird.

With this change, files whose names start with underscore (e.g.
`_foo.html`) are no longer accessible from user requests. They're
still part of the registry and can be included in templates using the
`get` helper or partial syntax.

This is useful for partials like headers, footers, etc that shouldn't
be served out of context. Prior to this change you could `curl
http://website.com/header` which was pretty weird.
@mkantor mkantor merged commit 0c7c81a into master Oct 29, 2020
@mkantor mkantor deleted the unrouteable-content-files branch October 29, 2020 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant