Debian Codegraph @

Embperl/Recipe/EmbperlPODXSLT.pm

raw
1
2 ###################################################################################
3 #
4 # Embperl - Copyright (c) 1997-2008 Gerald Richter / ecos gmbh www.ecos.de
5 # Embperl - Copyright (c) 2008-2014 Gerald Richter
6 #
7 # You may distribute under the terms of either the GNU General Public
8 # License or the Artistic License, as specified in the Perl README file.
9 #
10 # THIS PACKAGE IS PROVIDED 'AS IS' AND WITHOUT ANY EXPRESS OR
11 # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
12 # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
13 #
14 # $Id: EmbperlPODXSLT.pm 1578075 2014-03-16 14:01:14Z richter $
15 #
16 ###################################################################################
17
18
19
20 package Embperl::Recipe::EmbperlPODXSLT ;
21
22 use strict ;
23 use vars qw{@ISA} ;
24
25 use Embperl::Recipe::Embperl ;
26
27 @ISA = ('Embperl::Recipe::EmbperlXSLT') ;
28
29 # ---------------------------------------------------------------------------------
30 #
31 # Create a new recipe by converting request parameter
32 #
33 # ---------------------------------------------------------------------------------
34
35
36 sub get_recipe
37
38 {
39 my ($class, $r, $recipe) = @_ ;
40
41 my $epsrc = Embperl::Recipe::Embperl -> get_recipe ($r, $recipe, undef, 'EmbperlBlocks') ;
42
43 push @$epsrc, { type => 'eptostring' } ;
44
45 my $ep = Embperl::Recipe::EmbperlXSLT -> get_recipe ($r, $recipe, $epsrc, 'POD') ;
46 for (my $i = @$epsrc; $i < @$ep; $i++)
47 {
48 $ep -> [$i] -> {'cache'} = 0 if (exists $ep -> [$i] -> {'cache'}) ;
49 }
50
51 return $ep ;
52 }
53
54
55