Commit Graph

365 Commits

Author SHA1 Message Date
ian%hixie.ch
0d46e744e8 Provide a hook for scripts that want to do something after every command 2004-09-12 19:44:58 +00:00
ian%hixie.ch
6f627ebf15 Don't add NULLs to the database when setting a field 2004-02-25 19:23:17 +00:00
ian%hixie.ch
96cf9be7a7 Fix two misuses of pseudo-field methods (they are not lvalues). 2004-02-25 19:22:31 +00:00
ian%hixie.ch
cb40df4d46 don't clear BLKSTACK between templates. this shouldn't cause any problems assuming every template leave()s the context correctly. We need it because we currently treat each inclusion as effectively a totally new template, but we want to do that without losing [%BLOCK%]s. 2004-02-25 19:21:36 +00:00
ian%hixie.ch
db78a50c81 Report an internal error when we have a malformed submission. Really we should return an error 400 but that can wait. 2004-02-25 19:19:51 +00:00
ian%hixie.ch
4d51be8c89 Remove indenting of first debug variable. 2004-02-25 19:18:45 +00:00
ian%hixie.ch
cad9e1a0d4 To get around some weirdness sometimes (you never know WHAT state you're in when you're in the middle of an exception handler...), use UNIVERSAL::isa() instead of the isa() method. 2004-02-25 17:50:24 +00:00
ian%hixie.ch
f973ed9b2e Report parser errors when trying to compile the templates. 2004-02-25 17:44:29 +00:00
ian%hixie.ch
6fded81564 Don't try to load the Exporter module. Don't try to load modules without a __DATA__ section. Don't try to evaluate the block if trying to read it failed. 2004-02-25 17:41:30 +00:00
ian%hixie.ch
69cd78870a Overshot the mark on some of the previous changes. content() is actually a method. 2003-07-03 18:19:49 +00:00
ian%hixie.ch
d06a945451 missed this in earlier changes 2003-07-03 17:59:17 +00:00
ian%hixie.ch
f00de2c4ce Forgot a dependency 2003-03-27 20:28:40 +00:00
ian%hixie.ch
ac06521cfd A simple HTTP redirection template (301) 2003-03-27 20:00:26 +00:00
ian%hixie.ch
070ffc9042 More bullet proofing for the module loading; Better handling of inherited AUTOLOADs; minor fixups. 2003-03-27 19:59:32 +00:00
ian%hixie.ch
1484af1516 Even neater error messages and warnings 2003-03-27 19:58:17 +00:00
ian%hixie.ch
8324c78266 Slap some duct tape around the output module to keep it together for now. Eventually this will have to be vastly simplified. 2003-03-27 19:54:12 +00:00
ian%hixie.ch
86ce78147a Comment out the debug code in the DESTROY handler 2003-03-27 19:52:23 +00:00
ian%hixie.ch
60b91e09b5 Fix fallout in the Input modules from the removal of implied properties 2003-03-27 19:50:40 +00:00
ian%hixie.ch
7418b4d70f add a redirect string, fix the other strings to corectly send back their data. 2003-03-27 19:48:52 +00:00
ian%hixie.ch
364920c56b Fix build bustage 2003-03-27 19:47:57 +00:00
ian%hixie.ch
5c08ce41ca typo fix 2003-03-27 14:59:26 +00:00
ian%hixie.ch
6f34ba8bd5 disabling a signal handler isn't done by using undef 2003-03-15 15:07:34 +00:00
ian%hixie.ch
a7bb820a34 fix the non-compiled case 2003-03-15 14:53:35 +00:00
ian%hixie.ch
56529c19a2 remove DESTROY code, rework the output system to use a single hash instead of passing arguments around, delay the loading of certain modules, fix some bugs with the removal of the built in property system, make the TemplateToolkit module only have one template object, and cache the precompiled documents, remove the HTTP output module, and other optimisations. 2003-03-15 14:14:21 +00:00
ian%hixie.ch
ceef63652c Improve the Exception class so it can work out what 'eval' numbers map to; remove the 'properties' stuff since it was taking a good 4% of the overall time of PLIF applications. THIS WILL CAUSE HUGE PROBLEMS WITH PLIF CONSUMERS. I REPEAT, THIS **WILL** BREAK YOUR CODE. DO NOT UPDATE TO THIS CODE IF YOU DON'T WANT TO SPEND A LOT OF TIME UPDATING YOUR CODE\!\!\! 2003-03-14 13:08:43 +00:00
ian%hixie.ch
61ccca3ec8 Stop perl parsing source files that aren't used. (Lazy loading using __DATA__ blocks) 2003-03-14 07:50:18 +00:00
ian%hixie.ch
9a28f209ac Fix the error handling of compiled templates 2003-03-14 03:59:29 +00:00
ian%hixie.ch
cd62b1a9a1 Minor optimisation. There was no point doing named expanders. 2003-03-14 03:58:46 +00:00
ian%hixie.ch
707e1d3e88 UTF-8 baby. 2003-03-14 03:57:13 +00:00
ian%hixie.ch
c3c220e21a More debugging information 2003-03-14 02:16:09 +00:00
ian%hixie.ch
db5300432e Support compiled templates in a separate directory 2003-03-14 02:13:03 +00:00
ian%hixie.ch
388e2fdc33 This script can be used to quickly compile any TemplateToolkit templates 2003-03-14 02:08:04 +00:00
ian%hixie.ch
a5bc683b9b Make sure to stringify the error string. 2003-01-15 23:48:41 +00:00
ian%hixie.ch
a23f79534c Don't try to call the inherited DESTROY destructor, since UNIVERSAL doesn't have one... 2003-01-10 00:36:20 +00:00
ian%hixie.ch
0cf9f72e1b Propogate errors from the results frame for a nicer stack trace. 2003-01-10 00:21:08 +00:00
ian%hixie.ch
88efe01932 Support negative integers too 2003-01-10 00:20:37 +00:00
ian%hixie.ch
b3fb3d5167 TemplateToolkit doesn't support .defined on objects. Also, stringify objects early to avoid trying to apply .replace, etc, on them. 2003-01-10 00:19:47 +00:00
ian%hixie.ch
9ef280a87d PATH_INFO support. 2003-01-10 00:14:45 +00:00
ian%hixie.ch
edc2865fd7 Escape newlines in keys. Explicitly mention empty arrays and hashes. Quote string values. Support undefined values. 2003-01-05 23:47:15 +00:00
ian%hixie.ch
0af4c577a9 Oops, forgot to escape the backslashes when I pasted my TemplateToolkit file into Perl. 2003-01-03 00:47:32 +00:00
ian%hixie.ch
9d023b0958 Switch to a hopefully much faster debug.dumpVars template 2003-01-03 00:24:27 +00:00
ian%hixie.ch
68bc6ca991 Three new filters: pad left, pad right, and indent lines, so that the first line can be indented a different amoun. 2003-01-02 22:32:42 +00:00
ian%hixie.ch
d1ddbdd0c2 Turns out sprintf() is redundant with the format filter, so removing it. 2003-01-02 21:47:12 +00:00
ian%hixie.ch
536b1383f8 Make methodMissing use syntaxError instead of error(). Remove all the user level, error reporting and fatal handlers nonsense. Remove the debug() method. Update error() and assert() to be simply quick shortcuts to raising exceptions, using deep magic to make the stacktraces look good. 2003-01-02 20:39:49 +00:00
ian%hixie.ch
a0f3c3863b Propagate PLIF::Exceptions through TemplateToolkit code without stringifying them. 2003-01-02 20:34:27 +00:00
ian%hixie.ch
4d3fb35ee8 Make report also return the exception, so it can be reported and raised at the same time (useful for debugging). Make reraising of exceptions not wipe out the original stacktrace. Clean up stringification: Cope with calls from eval '...' blocks and sub { ... } blocks, also dump the environment, don't stringify object arguments, escape newlines in string arguments. 2003-01-02 20:33:10 +00:00
ian%hixie.ch
8089606cff Add some singulars up at the mulit-year level. 2002-12-31 23:36:59 +00:00
ian%hixie.ch
40fd4f3386 Nicer alignment. 2002-12-31 23:23:12 +00:00
ian%hixie.ch
a614ace041 Replace Carp.pm with Exception.pm so that we have a consistent interface to exceptions and errors. Also add a syntaxError check in AUTOLOAD to make sure we don't call it when we shouldn't. 2002-12-30 08:04:29 +00:00
ian%hixie.ch
aa5488a873 Neaten up the arguments display: limit the depth, allow integers to be unquoted as well as floats, crop long strings. 2002-12-30 08:02:40 +00:00