Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Templates cannot be organized into subdirectories #42

Closed
sgrif opened this issue Dec 24, 2016 · 1 comment
Closed

Templates cannot be organized into subdirectories #42

sgrif opened this issue Dec 24, 2016 · 1 comment
Labels
accepted An accepted request or suggestion bug Deviation from the specification or expected behavior

Comments

@sgrif
Copy link
Contributor

sgrif commented Dec 24, 2016

To reproduce:

  • Create a file like templates/posts/new.html.tera
  • Have a route which performs Template::render("posts/new", &context)

Expected behavior:

The template is rendered

Actual behavior:

Error: Template 'posts/new' does not exist.

@SergioBenitez SergioBenitez added accepted An accepted request or suggestion bug Deviation from the specification or expected behavior labels Dec 24, 2016
@SergioBenitez
Copy link
Member

SergioBenitez commented Dec 24, 2016

Confirmed. Looks like a simple fix.

Edit: At present, you can use 'new' instead of 'posts/new' to render that template.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted An accepted request or suggestion bug Deviation from the specification or expected behavior
Projects
None yet
Development

No branches or pull requests

2 participants