version 1.1, 2003/06/10 19:29:26
|
version 1.2, 2004/05/10 14:27:33
|
Line 1
|
Line 1
|
\label{Authoring_Scripting_Tags} |
\label{Authoring_Scripting_Tags} |
|
|
\begin{itemize} |
\begin{itemize} |
\item \textbf{display}\index{display}: The intervening perl script is evaluated |
\item \textbf{display}\index{display}: The intervening Perl script is evaluated |
in the safe space and the return value of the script replaces the |
in the safe space and the return value of the script replaces the |
entire tag. |
entire tag. |
\item \textbf{import}\index{import}: Causes the parse to read in the file |
\item \textbf{import}\index{import}: Causes the parse to read in the file |
Line 10 the file had existed at location of the
|
Line 10 the file had existed at location of the
|
\item \textbf{parserlib}\index{parserlib}: the enclosed filename contains |
\item \textbf{parserlib}\index{parserlib}: the enclosed filename contains |
definitions for new tags. |
definitions for new tags. |
\item \textbf{script}\index{script}: If the attribute \textbf{type} is |
\item \textbf{script}\index{script}: If the attribute \textbf{type} is |
set to {}``loncapa/perl'' the enclosed data is a perl script which |
set to {}``loncapa/perl'' the enclosed data is a Perl script which |
is evaluated inside the perl Safe space. The return value of the script |
is evaluated inside the Perl Safe space. The return value of the script |
is ignored. |
is ignored. |
\item \textbf{scriptlib}\index{scriptlib}: The enclosed filename contains |
\item \textbf{scriptlib}\index{scriptlib}: The enclosed filename contains |
perl code to run in the safe space. |
Perl code to run in the safe space. |
\item \textbf{block}\index{block}: Has a required argument \textbf{condition} |
\item \textbf{block}\index{block}: Has a required argument \textbf{condition} |
that is evaluated. If the condition is true everything inside the |
that is evaluated. If the condition is true everything inside the |
tag is evaluated, otherwise everything inside the block tag is skipped. |
tag is evaluated, otherwise everything inside the block tag is skipped. |
Line 31 the number of tags inside that are actua
|
Line 31 the number of tags inside that are actua
|
\item \textbf{solved}\index{solved}: Everything inside the tag is skipped |
\item \textbf{solved}\index{solved}: Everything inside the tag is skipped |
if the problem is {}``not solved''. |
if the problem is {}``not solved''. |
\item \textbf{while}\index{while}: Implements a while loop. The required |
\item \textbf{while}\index{while}: Implements a while loop. The required |
attribute \textbf{condition} is a perl scriptlet that when evaluated |
attribute \textbf{condition} is a Perl scriptlet that when evaluated |
results in a true or false value. On true the entirety of the text |
results in a true or false value. On true the entirety of the text |
between the whiles is parsed. The condition is tested again, etc. |
between the whiles is parsed. The condition is tested again, etc. |
If false it goes to the next tag. |
If false it goes to the next tag. |