File:  [LON-CAPA] / loncom / homework / structuretags.pm
Revision 1.1: download - view: text, annotated - select for diffs
Tue Jul 25 21:27:30 2000 UTC (23 years, 10 months ago) by albertel
Branches: MAIN
CVS tags: HEAD
-started work on web target for homework tags
-lonhomework kinda works

# 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->get_text("/block");
  }
  return "";
}

sub end_block {
}

1;
__END__

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>
500 Internal Server Error

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at root@localhost to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.