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

代码块生成后多出无用花括号 #28

Closed
iovxw opened this issue Oct 1, 2014 · 1 comment
Closed

代码块生成后多出无用花括号 #28

iovxw opened this issue Oct 1, 2014 · 1 comment

Comments

@iovxw
Copy link

iovxw commented Oct 1, 2014

@{
    isActive := func(name string) {
        if active == name {
            <li class="active">
        }else{
            <li>
        }
    }
}

生成.go后

    {
        isActive := func(name string) {
            if active == name {

                _buffer.WriteString("<li class=\"active\">\n        ")
            } else {

                _buffer.WriteString("<li>\n     ")
            }
        }
    }

导致出现isActive未定义错误

@chenyukang
Copy link
Member

@Bluek404 ,谢谢,会修复的。

chenyukang added a commit that referenced this issue Oct 1, 2014
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