File:  [LON-CAPA] / loncom / homework / structuretags.pm
Revision 1.2: download - view: text, annotated - select for diffs
Thu Aug 3 19:34:11 2000 UTC (23 years, 8 months ago) by albertel
Branches: MAIN
CVS tags: HEAD
- modified the xml parser to actually have a stack of parsers and pass
  this stack along

# The LearningOnline Network with CAPA
# <script> definiton


package Apache::structuretags; 

use strict;
use Apache::lonnet;

sub BEGIN {
  &Apache::lonxml::register('Apache::structuretags',('block'));
}

sub start_block {
  my ($target,$token,$parstack,$parser,$safeeval)=@_;

  my $code = @$parstack[$#$parstack];
  $code =~ s/\"//g;
  $code .=';return $condition;';
  my $result = &Apache::run::run($code,$safeeval);
  if ( ! $result ) { 
    my $skip=$$parser[$#$parser]->get_text("/block");
  }
  return "";
}

sub end_block {
}

1;
__END__

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>