CMlyst icon indicating copy to clipboard operation
CMlyst copied to clipboard

grantlee sintax error

Open neochapay opened this issue 7 years ago • 4 comments

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

neochapay avatar Nov 21 '18 12:11 neochapay

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

dantti avatar Nov 22 '18 03:11 dantti

[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 <[email protected]>
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.

neochapay avatar Nov 22 '18 06:11 neochapay

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

dantti avatar Nov 22 '18 09:11 dantti

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

neochapay avatar Nov 22 '18 11:11 neochapay