From: sgunderson@bigfoot.com <> Date: Sat, 12 Aug 2006 14:09:05 +0000 (+0200) Subject: Organize everything into neat directories. X-Git-Url: https://git.sesse.net/?p=xml-template;a=commitdiff_plain;h=0ab1206b77606af6714e14f4088bef28f89733d5 Organize everything into neat directories. --- diff --git a/XML/Template.pm b/perl/XML/Template.pm similarity index 100% rename from XML/Template.pm rename to perl/XML/Template.pm diff --git a/attribute.pl b/perl/attribute.pl similarity index 85% rename from attribute.pl rename to perl/attribute.pl index 16826ca..9e4947d 100644 --- a/attribute.pl +++ b/perl/attribute.pl @@ -1,7 +1,7 @@ #! /usr/bin/perl use XML::Template; -my $doc = XML::Template::process_file('clone.xml', { +my $doc = XML::Template::process_file('../xml/clone.xml', { 'color' => 'red', '#things' => [ { 'li' => 'Raindrops on roses', 'li.class' => 'odd' }, diff --git a/attribute2.pl b/perl/attribute2.pl similarity index 83% rename from attribute2.pl rename to perl/attribute2.pl index 038ae92..2557d33 100644 --- a/attribute2.pl +++ b/perl/attribute2.pl @@ -1,7 +1,7 @@ #! /usr/bin/perl use XML::Template; -my $doc = XML::Template::process_file('clone.xml', { +my $doc = XML::Template::process_file('../xml/clone.xml', { 'color' => 'blue', '#things' => XML::Template::alternate('li.class', [ { 'li' => 'Raindrops on roses' }, diff --git a/clone.pl b/perl/clone.pl similarity index 80% rename from clone.pl rename to perl/clone.pl index 0881cb2..47986be 100644 --- a/clone.pl +++ b/perl/clone.pl @@ -1,7 +1,7 @@ #! /usr/bin/perl use XML::Template; -my $doc = XML::Template::process_file('clone.xml', { +my $doc = XML::Template::process_file('../xml/clone.xml', { 'color' => 'blue', '#things' => [ { 'li' => 'Raindrops on roses' }, diff --git a/include.pl b/perl/include.pl similarity index 57% rename from include.pl rename to perl/include.pl index 26b2562..5c0ec5e 100644 --- a/include.pl +++ b/perl/include.pl @@ -1,10 +1,10 @@ #! /usr/bin/perl use XML::Template; -my $doc = XML::Template::process_file('included.xml', { +my $doc = XML::Template::process_file('../xml/included.xml', { 'color' => 'red' }); -my $master = XML::Template::process_file('master.xml', { +my $master = XML::Template::process_file('../xml/master.xml', { 'title' => 'Main HTML title', 'h1' => 'Nice heading here', 'contents' => $doc diff --git a/simple.pl b/perl/simple.pl similarity index 67% rename from simple.pl rename to perl/simple.pl index 04c4eb4..6089d27 100644 --- a/simple.pl +++ b/perl/simple.pl @@ -1,7 +1,7 @@ #! /usr/bin/perl use XML::Template; -my $doc = XML::Template::process_file('simple.xml', { +my $doc = XML::Template::process_file('../xml/simple.xml', { 'title' => 'A very basic example', '#hello' => 'Hello world!' }); diff --git a/attribute.php b/php/attribute.php similarity index 86% rename from attribute.php rename to php/attribute.php index 20f33cd..b4899b8 100644 --- a/attribute.php +++ b/php/attribute.php @@ -1,7 +1,7 @@ 'red', '#things' => array( array( 'li' => 'Raindrops on roses', 'li.class' => 'odd' ), diff --git a/attribute2.php b/php/attribute2.php similarity index 84% rename from attribute2.php rename to php/attribute2.php index 6beb24b..e145045 100644 --- a/attribute2.php +++ b/php/attribute2.php @@ -1,7 +1,7 @@ 'blue', '#things' => XML_Template_alternate('li.class', array( array( 'li' => 'Raindrops on roses' ), diff --git a/clone.php b/php/clone.php similarity index 82% rename from clone.php rename to php/clone.php index df02dd5..2bbd266 100644 --- a/clone.php +++ b/php/clone.php @@ -1,7 +1,7 @@ 'blue', '#things' => array( array( 'li' => 'Raindrops on roses' ), diff --git a/include.php b/php/include.php similarity index 57% rename from include.php rename to php/include.php index a4b0ab3..8cbe001 100644 --- a/include.php +++ b/php/include.php @@ -1,10 +1,10 @@ 'red' )); -$master = XML_Template_process_file('master.xml', array( +$master = XML_Template_process_file('../xml/master.xml', array( 'title' => 'Main HTML title', 'h1' => 'Nice heading here', 'contents' => $doc diff --git a/simple.php b/php/simple.php similarity index 67% rename from simple.php rename to php/simple.php index 85614d5..10e73f1 100644 --- a/simple.php +++ b/php/simple.php @@ -1,7 +1,7 @@ 'A very basic example', '#hello' => 'Hello world!' )); diff --git a/xml-template.php b/php/xml-template.php similarity index 100% rename from xml-template.php rename to php/xml-template.php diff --git a/clone.xml b/xml/clone.xml similarity index 100% rename from clone.xml rename to xml/clone.xml diff --git a/included.xml b/xml/included.xml similarity index 100% rename from included.xml rename to xml/included.xml diff --git a/master.xml b/xml/master.xml similarity index 100% rename from master.xml rename to xml/master.xml diff --git a/simple.xml b/xml/simple.xml similarity index 100% rename from simple.xml rename to xml/simple.xml