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

Nested classes dont compile #3

Closed
Meduzz opened this issue Feb 11, 2018 · 0 comments
Closed

Nested classes dont compile #3

Meduzz opened this issue Feb 11, 2018 · 0 comments

Comments

@Meduzz
Copy link

Meduzz commented Feb 11, 2018

Im so glad you've decided to make a pure pug template parser/compiler/thingie! Amber's been a solid goto, to fill this void (for Go) for a while, but it's not pure pug.

Unfortunately I've ran into a little snag. Basically I have 2 templates:

layout.pug

doctype html
html
    head
        title Title
        block head
    body
        block content

and index.pug

extend layout

block content
    .columns
        .column
            h1 Left
        .column
            h1 Right

When I try to compile index.pug, I get this error:

Error #01: parse error: templates/index.pug, [line 5, col 0]: interface conversion: interface {} is nil, not string

So it seems it handles the first class, but not the second.

If I prefix classes with div it works like a charm though, so there's an easy work around for now.

@eknkc eknkc closed this as completed in 607e132 Feb 24, 2018
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