CMlyst
CMlyst copied to clipboard
grantlee sintax error
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
I can't reproduce your issue, are you sure you have the lastest Grantlee?
[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.
This is not official grantlee, just a fork. Use this: https://github.com/steveire/grantlee
I try rebuild with this https://github.com/steveire/grantlee - nothing to change