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

Include partials from other locations in the view structure #226

bryanp opened this Issue Feb 24, 2017 · 0 comments


None yet
1 participant

bryanp commented Feb 24, 2017

We want to make it possible to include partials from other locations in the view structure. The full discussion is available here. Here's an example structure for illustration purposes:


The posts/index.html template could include both the post and comment forms like this:

<!-- @include form -->
<!-- @include comments/form -->

When compiling the view, Presenter would look at the following paths in order:

  • presentation/templates/posts/comments/_form.html
  • presentation/templates/comments/_form.html
  • presentation/partials/comments/_form.html

@bryanp bryanp added this to the 1.0 milestone Feb 24, 2017

@bryanp bryanp removed the enhancement label May 19, 2018

@bryanp bryanp removed this from the 1.0 milestone Aug 9, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment