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

grantlee sintax error #23

Open
neochapay opened this issue Nov 21, 2018 · 4 comments
Open

grantlee sintax error #23

neochapay opened this issue Nov 21, 2018 · 4 comments

Comments

@neochapay
Copy link
Contributor

neochapay commented Nov 21, 2018

I got latest grantlee and build it from git. After run CMlyst and going to http://localhost:3000/ i get error:

Error while rendering template: 'if' statement improperly formatted, line 0, posts.html, line 0, posts.html

If i go to /setup i got

3914:3914 cutelyst.dispatcher[debug] Path is "/"
3914:3914 cutelyst.dispatcher[debug] Arguments are "setup"
3914:3914 cutelyst.grantlee[debug] Rendering template "404.html"
3914:3914 grantlee.template[warning] "'if' statement improperly formatted, line 0, base.html, line 0, base.html"
3914:3914 cutelyst.stats[debug] Response Code: 404; Content-Type: text/html; charset=utf-8; Content-Length: 0

In stdout

@dantti
Copy link
Member

dantti commented Nov 22, 2018

I can't reproduce your issue, are you sure you have the lastest Grantlee?

@neochapay
Copy link
Contributor Author

[core]
        repositoryformatversion = 0
        filemode = true
        bare = false
        logallrefupdates = true
[remote "origin"]
        url = https://github.com/cutelyst/grantlee.git
        fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
        remote = origin
        merge = refs/heads/master

git log
commit b66447203dbe371dfc2f44c594f2db4f31bdc722 (HEAD -> master, origin/master, origin/HEAD)
Author: Stephen Kelly <steveire@gmail.com>
Date:   Fri Feb 19 17:33:21 2016 +0100

    Omit number separators from C locale in tests.
    
    Qt 5.6 changes behavior to omit the separator.  Pre-empt that by
    omitting it now in the tests and adjust the locale setting to use the
    5.6 behavior even with 5.5.

@dantti
Copy link
Member

dantti commented Nov 22, 2018

This is not official grantlee, just a fork.
Use this: https://github.com/steveire/grantlee

@neochapay
Copy link
Contributor Author

I try rebuild with this https://github.com/steveire/grantlee - nothing to change

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