File: Test.pm

package info (click to toggle)
libembperl-perl 2.5.0~rc3-1~bpo70%2B1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy-backports
  • size: 5,800 kB
  • sloc: ansic: 21,228; perl: 13,985; cpp: 467; xml: 49; makefile: 27; sh: 24
file content (35 lines) | stat: -rw-r--r-- 589 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35

package Embperl::Syntax::Test;

use strict;
use Embperl::Syntax qw{:types} ;
use Embperl::Syntax::HTML ;
use base qw(Embperl::Syntax::HTML);


sub new 
    {
    my $class = shift;
    my $self = Embperl::Syntax::HTML::new($class);

    if (!$self->{-testInit}) 
        {
        $self->{-testInit} = 1;
        init($self);
        }
    return $self;
    }

sub init {
  my $self = shift;

  $self->AddTagInside('testname', ['type'], undef, undef, {
                perlcode => q[{
                                _ep_rp(%$x%, "test syntax %&'type%");
                }]
  });

}


1;