From ffe6010ef4883b3ae5899105e33e2b331e6b28e6 Mon Sep 17 00:00:00 2001 From: Francesco Cozzuto Date: Wed, 15 Oct 2025 16:40:50 +0200 Subject: [PATCH] Update MANUAL.md --- MANUAL.md | 37 ++++++++++++++++++++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/MANUAL.md b/MANUAL.md index 732f992..bbcbbc3 100644 --- a/MANUAL.md +++ b/MANUAL.md @@ -522,4 +522,39 @@ You may omit the closing tag of any element by using this syntax:
``` -Note that WL treats all elements the same way and does not apply different behavior based on the specific tag it's parsing. For instance most browsers will allor you to have a single open tag `
` with no closing one since `br` doesn't expect children elements. This would be incorrect in WL. You need to either write the element as `

` or as `
`. \ No newline at end of file +Note that WL treats all elements the same way and does not apply different behavior based on the specific tag it's parsing. For instance most browsers will allor you to have a single open tag `
` with no closing one since `br` doesn't expect children elements. This would be incorrect in WL. You need to either write the element as `

` or as `
`. + +To avoid XSS attacks, you can use the `escape` operator to escape any HTML element. The following script + +``` +escape click me +``` + +Will output + +``` +<a href="website.com">click me</a> +``` + +## File Inclusion + +WL allows you to import all output, variables, routines from an external file to your script using the `include` statement. + +Say you have a file `other.wl` that contains the following text + +``` + +"Some output here" + +let A = 5 + +``` + +Any other file may include `other.wl` to use its contents + +``` +import "other.wl" + +"The A variable is accessible here: " +A +``` \ No newline at end of file