Skip to content

variables not work with extends and import #74

@yockii

Description

@yockii

eg.
_layout.amber:

!!! 5
html
    body
        import inc/_sidebar

inc/_sidebar.amber:

div.test #{$activePage}

and rendered page is home.amber:

extends _layout
$activePage = "dashboard"

this won't work, with err: undefined variable "$activePage"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions