From d92b8c07571d945e04efa5c8bd500bf4b2cfd799 Mon Sep 17 00:00:00 2001 From: cxl Date: Sun, 5 Aug 2012 12:36:36 +0000 Subject: [PATCH] Skylark: doc fixes git-svn-id: svn://ultimatepp.org/upp/trunk@5262 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/Skylark/srcdoc.tpp/Tutorial$en-us.tpp | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/uppsrc/Skylark/srcdoc.tpp/Tutorial$en-us.tpp b/uppsrc/Skylark/srcdoc.tpp/Tutorial$en-us.tpp index 121e2c8fe..fc65d4f4e 100644 --- a/uppsrc/Skylark/srcdoc.tpp/Tutorial$en-us.tpp +++ b/uppsrc/Skylark/srcdoc.tpp/Tutorial$en-us.tpp @@ -186,7 +186,7 @@ features template language `'Witz`':&] [s7; &] [s5; Witz template language loosely ressembles JavaScript. It is able to evaluate expression, supports `"if`" and looping through -values with `"for`".&] +arrays or maps with `"for`".&] [s5; Witz templates are compiled at runtime. Settings configuration variable [* use`_caching] to false makes them to compile each time they are invoked (otherwise the compilation result is cached) @@ -267,13 +267,11 @@ passed as argument of the function:&] [s7; &] [s7; &] [s7; &] -[s5; [* Skylark03/index.witz:]&] +[s5; [* Skylark03/param.witz:]&] [s7; &] [s7; &] -[s7; Link to page2
&] -[s7; `$for(i in `[`"param`_test`", 123, `"param`_test3`"`])&] -[s7; -|Param test: `$i
&] -[s7; `$endfor&] +[s7; Param: `$PARAM
&] +[s7; Back to index
&] [s7; &] [s7; &] [s7; &] @@ -440,14 +438,15 @@ enctype`=`"multipart/form`-data`">&] [s7; &] [s5; Note: There also exists alternative POST`_RAW method marker in SKYLARK handler definition `- such handler also reacts to POST -requests, but it avoids identity checks to prevent CSRF attacks.&] +requests, but it avoids identity checks intended to prevent CSRF +attacks.&] [s5; &] [s3; 7. Session variables&] -[s5; Http`::SessioSet method can be used to store `'session variables`' +[s5; Http`::SessionSet method can be used to store `'session variables`' that are persistent for specific browser across requests. Implementation is based on cookie, session variables are stored either in filesystem or in database (see Skylark configuration for details). Session -variables reflected in shared variable space (means its values +variables are reflected in shared variable space (means its values are accessible using [* Http`::operator`[`]]) and are distinguished with `'.`' as the first character.&] [s7; &]