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

variables not work with extends and import #74

Open
yockii opened this issue Mar 10, 2019 · 0 comments
Open

variables not work with extends and import #74

yockii opened this issue Mar 10, 2019 · 0 comments

Comments

@yockii
Copy link

yockii commented Mar 10, 2019

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"

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

1 participant