added new example page demonstrating backtraces

This commit is contained in:
a. fox 2024-01-17 16:46:03 -05:00
parent d5aa0f63d4
commit 9ac6b9fced
1 changed files with 11 additions and 0 deletions

11
examples/bad-page.lspx Normal file
View File

@ -0,0 +1,11 @@
;; this is a demonstration of a page that throws an error
;; when rendering.
;; is LSPX is ran with --verbose the backtrace is printed
;; to the console
;; if it is ran with --backtrace then the backtrace is rendered
;; as HTML and presented to the user
<div>
<p>this page is bad.</p>
<p> see? {{ (fake-function) }}</p>
</div>