# HG changeset patch # User Ludovic Chabant # Date 1436940158 25200 # Node ID f14796cbab0fbf250dc8caa730a4ea45fe764d2f # Parent 1038dba7b46ed1ec76889083ef705d2fca3e0826 cm: Fix wrong directory for utilities. diff -r 1038dba7b46e -r f14796cbab0f util/build/generate_messages.cmd --- a/util/build/generate_messages.cmd Mon Jul 13 08:17:45 2015 -0700 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,11 +0,0 @@ -@echo off -setlocal - -set CUR_DIR=%~dp0 -set CHEF=%CUR_DIR%..\bin\chef -set OUT_DIR=%CUR_DIR%..\piecrust\resources\messages -set ROOT_DIR=%CUR_DIR%messages - -%CHEF% --root=%ROOT_DIR% bake -o %OUT_DIR% -del %OUT_DIR%\index.html - diff -r 1038dba7b46e -r f14796cbab0f util/build/generate_messages.sh --- a/util/build/generate_messages.sh Mon Jul 13 08:17:45 2015 -0700 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,9 +0,0 @@ -#!/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 diff -r 1038dba7b46e -r f14796cbab0f util/build/messages/config.yml --- a/util/build/messages/config.yml Mon Jul 13 08:17:45 2015 -0700 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,2 +0,0 @@ -site: - title: PieCrust System Messages diff -r 1038dba7b46e -r f14796cbab0f util/build/messages/pages/_index.html --- a/util/build/messages/pages/_index.html Mon Jul 13 08:17:45 2015 -0700 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,12 +0,0 @@ ---- -title: PieCrust System Messages ---- - -Here are the **PieCrust** system message pages: - -* [Requirements Not Met]({{ pcurl('requirements') }}) -* [Error]({{ pcurl('error') }}) -* [Not Found]({{ pcurl('error404') }}) -* [Critical Error]({{ pcurl('critical') }}) - -This very page you're reading, however, is only here for convenience. diff -r 1038dba7b46e -r f14796cbab0f util/build/messages/pages/critical.html --- a/util/build/messages/pages/critical.html Mon Jul 13 08:17:45 2015 -0700 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,6 +0,0 @@ ---- -title: The Whole Kitchen Burned Down! -layout: error ---- -Something critically bad happened, and **PieCrust** needs to shut down. It's probably our fault. - diff -r 1038dba7b46e -r f14796cbab0f util/build/messages/pages/error.html --- a/util/build/messages/pages/error.html Mon Jul 13 08:17:45 2015 -0700 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,5 +0,0 @@ ---- -title: The Cake Just Burned! -layout: error ---- - diff -r 1038dba7b46e -r f14796cbab0f util/build/messages/pages/error404.html --- a/util/build/messages/pages/error404.html Mon Jul 13 08:17:45 2015 -0700 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,6 +0,0 @@ ---- -title: Can't find the sugar! -layout: error ---- -It looks like the page you were trying to access does not exist around here. Try going somewhere else. - diff -r 1038dba7b46e -r f14796cbab0f util/build/messages/templates/default.html --- a/util/build/messages/templates/default.html Mon Jul 13 08:17:45 2015 -0700 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,70 +0,0 @@ - - - - {{ page.title }} - - - - - -
- -
-
- {% block content %} - {{ content|safe }} - {% endblock %} -
-
- {% block footer %}{% endblock %} -
- - diff -r 1038dba7b46e -r f14796cbab0f util/build/messages/templates/error.html --- a/util/build/messages/templates/error.html Mon Jul 13 08:17:45 2015 -0700 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,27 +0,0 @@ -{% extends "default.html" %} - -{% block content %} -{{content|safe}} - -{# The following is `raw` because we want it to be in the - produced page, so it can then be templated on the fly - with the error messages #} -{% raw %} -{% if details %} -
-

Error details:

- -
-{% endif %} -{% endraw %} -{% endblock %} - -{% block footer %} -{% pcformat 'textile' %} -p(note). You're seeing this because something wrong happend. To see detailed errors with callstacks, run chef with the @--debug@ parameter, append @?!debug@ to the URL, or initialize the @PieCrust@ object with @{'debug': true}@. On the other hand, to see you custom error pages, set the @site/display_errors@ setting to @false@. -{% endpcformat %} -{% endblock %} diff -r 1038dba7b46e -r f14796cbab0f util/generate_messages.cmd --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/util/generate_messages.cmd Tue Jul 14 23:02:38 2015 -0700 @@ -0,0 +1,11 @@ +@echo off +setlocal + +set CUR_DIR=%~dp0 +set CHEF=%CUR_DIR%..\bin\chef +set OUT_DIR=%CUR_DIR%..\piecrust\resources\messages +set ROOT_DIR=%CUR_DIR%messages + +%CHEF% --root=%ROOT_DIR% bake -o %OUT_DIR% +del %OUT_DIR%\index.html + diff -r 1038dba7b46e -r f14796cbab0f util/generate_messages.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/util/generate_messages.sh Tue Jul 14 23:02:38 2015 -0700 @@ -0,0 +1,9 @@ +#!/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 diff -r 1038dba7b46e -r f14796cbab0f util/messages/config.yml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/util/messages/config.yml Tue Jul 14 23:02:38 2015 -0700 @@ -0,0 +1,2 @@ +site: + title: PieCrust System Messages diff -r 1038dba7b46e -r f14796cbab0f util/messages/pages/_index.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/util/messages/pages/_index.html Tue Jul 14 23:02:38 2015 -0700 @@ -0,0 +1,12 @@ +--- +title: PieCrust System Messages +--- + +Here are the **PieCrust** system message pages: + +* [Requirements Not Met]({{ pcurl('requirements') }}) +* [Error]({{ pcurl('error') }}) +* [Not Found]({{ pcurl('error404') }}) +* [Critical Error]({{ pcurl('critical') }}) + +This very page you're reading, however, is only here for convenience. diff -r 1038dba7b46e -r f14796cbab0f util/messages/pages/critical.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/util/messages/pages/critical.html Tue Jul 14 23:02:38 2015 -0700 @@ -0,0 +1,6 @@ +--- +title: The Whole Kitchen Burned Down! +layout: error +--- +Something critically bad happened, and **PieCrust** needs to shut down. It's probably our fault. + diff -r 1038dba7b46e -r f14796cbab0f util/messages/pages/error.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/util/messages/pages/error.html Tue Jul 14 23:02:38 2015 -0700 @@ -0,0 +1,5 @@ +--- +title: The Cake Just Burned! +layout: error +--- + diff -r 1038dba7b46e -r f14796cbab0f util/messages/pages/error404.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/util/messages/pages/error404.html Tue Jul 14 23:02:38 2015 -0700 @@ -0,0 +1,6 @@ +--- +title: Can't find the sugar! +layout: error +--- +It looks like the page you were trying to access does not exist around here. Try going somewhere else. + diff -r 1038dba7b46e -r f14796cbab0f util/messages/templates/default.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/util/messages/templates/default.html Tue Jul 14 23:02:38 2015 -0700 @@ -0,0 +1,70 @@ + + + + {{ page.title }} + + + + + +
+ +
+
+ {% block content %} + {{ content|safe }} + {% endblock %} +
+
+ {% block footer %}{% endblock %} +
+ + diff -r 1038dba7b46e -r f14796cbab0f util/messages/templates/error.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/util/messages/templates/error.html Tue Jul 14 23:02:38 2015 -0700 @@ -0,0 +1,27 @@ +{% extends "default.html" %} + +{% block content %} +{{content|safe}} + +{# The following is `raw` because we want it to be in the + produced page, so it can then be templated on the fly + with the error messages #} +{% raw %} +{% if details %} +
+

Error details:

+ +
+{% endif %} +{% endraw %} +{% endblock %} + +{% block footer %} +{% pcformat 'textile' %} +p(note). You're seeing this because something wrong happend. To see detailed errors with callstacks, run chef with the @--debug@ parameter, append @?!debug@ to the URL, or initialize the @PieCrust@ object with @{'debug': true}@. On the other hand, to see you custom error pages, set the @site/display_errors@ setting to @false@. +{% endpcformat %} +{% endblock %}