cryogen-project / cryogen-project/cryogen

block.super doesn't work with pages

Open
#219 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
1.1k
Forks
93
PR merge metrics
No merged PRs in 30d

Description

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](https://user-images.githubusercontent.com/22087/91666774-6fdd2c00-eab4-11ea-91d4-d31940a7099b.png)

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.