- display: The intervening Perl script is evaluated
in the safe space and the return value of the script replaces the
- import: This causes the parse to read in the file
named in the body of the tag and parse it as if the entire text of
the file had existed at the location of the tag.
- parserlib: The enclosed filename contains
definitions for new tags.
- script: If the attribute type is
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
- scriptlib: The enclosed filename contains
Perl code to run in the safe space.
- block: This has a required argument condition
that is evaluated. If the condition is true, everything inside the
tag is evaluated; otherwise, everything inside the block tag is skipped.
- notsolved: Everything inside the tag is
skipped if the problem is "solved".
- postanswerdate: Everything inside
the tag is skipped if the problem is before the answer date.
- preduedate: Everything inside the tag
is skipped if the problem is after the due date.
- randomlist: The enclosed tags are parsed
in a stable random order. The optional attribute show="N" restricts
the number of tags inside that are actually parsed to no more than
N. N can equal the total tags inside. The randomlist tag can be used to randomize problem
parts by wrapping the < part > tags with a randomlist tag.
Note that when randomlist wraps < part > tags, that all
students will work all parts only if show="N" where N is the total number
of parts wrapped. When N is less than the total number of parts wrapped,
there will be gaps in the assessment chart, and also in the table
of submissions for each student, corresponding to those parts which are
never available to that particular student. For more examples see Authoring
Library Files section .
- solved: Everything inside the tag is skipped
if the problem is "not solved".
- while: This implements a while loop. The required
attribute condition is a Perl scriptlet that when evaluated
results in a true or false value. If true, the entirety of the text
between the whiles is parsed. The condition is tested again, etc.
If false, it goes to the next tag.