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

Content blocks cannot be extended for pages #81

Closed
tylersticka opened this issue Apr 22, 2016 · 3 comments
Closed

Content blocks cannot be extended for pages #81

tylersticka opened this issue Apr 22, 2016 · 3 comments
Assignees

Comments

@tylersticka
Copy link
Member

tylersticka commented Apr 22, 2016

Given a hypothetical test.hbs layout that extends blank.hbs:

{{#extend "blank"}}
  {{#content "body" mode="append"}}
    world
  {{/content}}
{{/extend}}

And a test.hbs page that contains the following:


---
title: Test
layout: test

---

Hello

I would expect the page output to contain Hello world. Instead, it is simply Hello.

This is not limited to the "body" block or any particular mode. It's as if everything within {{#content}} attributes is ignored for extended page layouts.

@gerardo-rodriguez gerardo-rodriguez self-assigned this Apr 22, 2016
@gerardo-rodriguez
Copy link
Member

I'm gonna see if I can figure this out. 😬

@tylersticka
Copy link
Member Author

Updated description. I originally thought I also couldn't append to head, but that wasn't the case... it was just stripping out invalid stuff.

@tylersticka
Copy link
Member Author

@mrgerardorodriguez I think I just figured out what the deal is, and it's not a builder issue... it's a front-end issue.

Going to close this and open a new issue on the correct repo.

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

No branches or pull requests

2 participants