File:
[LON-CAPA] /
loncom /
html /
adm /
help /
tex /
Authoring_Scripting_Tags.tex
Revision
1.3:
download - view:
text,
annotated -
select for diffs
Thu Feb 24 22:30:49 2005 UTC (19 years, 5 months ago) by
vandui11
Branches:
MAIN
CVS tags:
version_2_9_X,
version_2_9_99_0,
version_2_9_1,
version_2_9_0,
version_2_8_X,
version_2_8_99_1,
version_2_8_99_0,
version_2_8_2,
version_2_8_1,
version_2_8_0,
version_2_7_X,
version_2_7_99_1,
version_2_7_99_0,
version_2_7_1,
version_2_7_0,
version_2_6_X,
version_2_6_99_1,
version_2_6_99_0,
version_2_6_3,
version_2_6_2,
version_2_6_1,
version_2_6_0,
version_2_5_X,
version_2_5_99_1,
version_2_5_99_0,
version_2_5_2,
version_2_5_1,
version_2_5_0,
version_2_4_X,
version_2_4_99_0,
version_2_4_2,
version_2_4_1,
version_2_4_0,
version_2_3_X,
version_2_3_99_0,
version_2_3_2,
version_2_3_1,
version_2_3_0,
version_2_2_X,
version_2_2_99_1,
version_2_2_99_0,
version_2_2_2,
version_2_2_1,
version_2_2_0,
version_2_1_X,
version_2_1_99_3,
version_2_1_99_2,
version_2_1_99_1,
version_2_1_99_0,
version_2_1_3,
version_2_1_2,
version_2_1_1,
version_2_1_0,
version_2_11_0_RC1,
version_2_10_X,
version_2_10_1,
version_2_10_0_RC2,
version_2_10_0_RC1,
version_2_10_0,
version_2_0_X,
version_2_0_99_1,
version_2_0_2,
version_2_0_1,
version_2_0_0,
version_1_99_3,
version_1_99_2,
version_1_99_1_tmcc,
version_1_99_1,
version_1_99_0_tmcc,
version_1_99_0,
loncapaMITrelate_1,
language_hyphenation_merge,
language_hyphenation,
bz6209-base,
bz6209,
bz5969,
bz2851,
PRINT_INCOMPLETE_base,
PRINT_INCOMPLETE,
HEAD,
GCI_3,
GCI_2,
GCI_1,
BZ5971-printing-apage,
BZ5434-fox,
BZ4492-merge,
BZ4492-feature_horizontal_radioresponse
formatted and punctuation fixed for clarity
1: \label{Authoring_Scripting_Tags}
2:
3: \begin{itemize}
4: \item \textbf{display}\index{display}: The intervening Perl script is evaluated
5: in the safe space and the return value of the script replaces the
6: entire tag.
7: \item \textbf{import}\index{import}: This causes the parse to read in the file
8: named in the body of the tag and parse it as if the entire text of
9: the file had existed at the location of the tag.
10: \item \textbf{parserlib}\index{parserlib}: The enclosed filename contains
11: definitions for new tags.
12: \item \textbf{script}\index{script}: If the attribute \textbf{type} is
13: set to {}``loncapa/perl'' the enclosed data is a Perl script which
14: is evaluated inside the Perl safe space. The return value of the script
15: is ignored.
16: \item \textbf{scriptlib}\index{scriptlib}: The enclosed filename contains
17: Perl code to run in the safe space.
18: \item \textbf{block}\index{block}: This has a required argument \textbf{condition}
19: that is evaluated. If the condition is true, everything inside the
20: tag is evaluated; otherwise, everything inside the block tag is skipped.
21: \item \textbf{notsolved}\index{notsolved}: Everything inside the tag is
22: skipped if the problem is {}``solved''.
23: \item \textbf{postanswerdate}\index{postanswerdate}: Everything inside
24: the tag is skipped if the problem is before the answer date.
25: \item \textbf{preduedate}\index{preduedate}: Everything inside the tag
26: is skipped if the problem is after the due date.
27: \item \textbf{randomlist}\index{randomlist}: The enclosed tags are parsed
28: in a stable random order. The optional attribute \textbf{show} restricts
29: the number of tags inside that are actually parsed to no more than
30: \textbf{show}.
31: \item \textbf{solved}\index{solved}: Everything inside the tag is skipped
32: if the problem is {}``not solved''.
33: \item \textbf{while}\index{while}: This implements a while loop. The required
34: attribute \textbf{condition} is a Perl scriptlet that when evaluated
35: results in a true or false value. If true, the entirety of the text
36: between the whiles is parsed. The condition is tested again, etc.
37: If false, it goes to the next tag.
38: \end{itemize}
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>