Mercurial > piecrust2
view util/generate_messages.sh @ 524:4bca25f99463
serve: Improve Jinja rendering error reporting.
Some errors in Jinja are not wrapped in `TemplateSyntaxError` exceptions, so
we have to wrap them ourselves to at least say what file it happened in.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Tue, 28 Jul 2015 21:25:08 -0700 |
parents | f14796cbab0f |
children |
line wrap: on
line source
#!/bin/sh CUR_DIR="$( cd "$( dirname "$0" )" && pwd )" CHEF=${CUR_DIR}/../bin/chef OUT_DIR=${CUR_DIR}/../piecrust/resources/messages ROOT_DIR=${CUR_DIR}/messages $CHEF --root=$ROOT_DIR bake -o $OUT_DIR rm ${OUT_DIR}/index.html