From 4650939dcc53dca3244b7b4f8bceab7a17646124 Mon Sep 17 00:00:00 2001 From: Kevin Chabowski Date: Wed, 29 Feb 2012 22:20:35 +0100 Subject: Introduced new exceptions and fixed a parsing bug. * The exceptions RuntimeError, FatalRuntimeError, CantLoadTemplate and CantSaveTemplate were introduced. * RuntimeErrors are automatically catched by the template engine and will be displayed instead of the tag, unless the parameter $mute_runtime_errors was set to true. * Missing tags will result either in a RuntimeError or, if $fatal_error_on_missing_tag is true, in a FatalRuntimeError. * The mktag-subcompiler and the standard library functions now use the new exceptions. * A bug, that threw away leading TextNodes if a comment or rawtext pseudotag was parsed, is now fixed. --- example/templates/src/articles.html | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'example/templates') diff --git a/example/templates/src/articles.html b/example/templates/src/articles.html index 0f20aeb..36f59c4 100644 --- a/example/templates/src/articles.html +++ b/example/templates/src/articles.html @@ -49,4 +49,9 @@

Get a variable's content dynamically

+ +

We will call ste:repeat with a non-numerical value for n here to see the handling of a RuntimeError

+ +

Bla

+
-- cgit v1.2.3-54-g00ecf