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

block.super doesn't work with pages #219

Open
harlanji opened this issue Aug 30, 2020 · 1 comment
Open

block.super doesn't work with pages #219

harlanji opened this issue Aug 30, 2020 · 1 comment

Comments

@harlanji
Copy link

Using cryogen-core 0.3.1, I'd like to create a new page that overrides the default template's content block, inserting the original via {{ block.super }} (info in Selmer README). Instead I get the page template rendered with no values populated.

The project was freshly created using the default page.html template. I added a page-premium.html template with an extends block:

{% extends "/html/page.html" %}

{% block content %}

  a
  {{ block.super }}
  b
  
{% endblock %}

And the page premium.md:

{:title "Premium"
 :layout :page-premium}

Premo.

What I see is this:

Screen Shot 2020-08-30 at 11 31 23 AM

And I'd expect to see "Premo." on the page between a and b.

@holyjak
Copy link
Contributor

holyjak commented Oct 5, 2021

Does it still not work with latest Cryogen and its updated Selmer?

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