mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-09-05 01:24:54 -06:00
Skylark: doc fixes
git-svn-id: svn://ultimatepp.org/upp/trunk@5262 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
8a6e1ad46d
commit
d92b8c0757
1 changed files with 8 additions and 9 deletions
|
|
@ -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; </body>&]
|
||||
[s7; </html>&]
|
||||
[s7; &]
|
||||
[s5; [* Skylark03/index.witz:]&]
|
||||
[s5; [* Skylark03/param.witz:]&]
|
||||
[s7; <html>&]
|
||||
[s7; <body>&]
|
||||
[s7; <a href`=[* `$Page2()]>Link to page2</a><br>&]
|
||||
[s7; `$for(i in `[`"param`_test`", 123, `"param`_test3`"`])&]
|
||||
[s7; -|<a href`=[* `$Param(i)]>Param test: `$i</a><br>&]
|
||||
[s7; `$endfor&]
|
||||
[s7; Param: `$PARAM<br>&]
|
||||
[s7; <a href`=`$HomePage()>Back to index</a><br>&]
|
||||
[s7; </body>&]
|
||||
[s7; </html>&]
|
||||
[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; &]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue