summaryrefslogtreecommitdiff
path: root/lib/WebCoso/Maker
diff options
context:
space:
mode:
Diffstat (limited to 'lib/WebCoso/Maker')
-rw-r--r--lib/WebCoso/Maker/HTML.pm4
-rw-r--r--lib/WebCoso/Maker/RST.pm4
-rw-r--r--lib/WebCoso/Maker/TT.pm4
-rw-r--r--lib/WebCoso/Maker/XHTML.pm5
4 files changed, 9 insertions, 8 deletions
diff --git a/lib/WebCoso/Maker/HTML.pm b/lib/WebCoso/Maker/HTML.pm
index 414fe2b..d2803af 100644
--- a/lib/WebCoso/Maker/HTML.pm
+++ b/lib/WebCoso/Maker/HTML.pm
@@ -1,7 +1,7 @@
# -*- mode: perl6 -*-
use WebCoso::Maker;
class WebCoso::Maker::HTML does WebCoso::Maker['xhtml','html'] {
- method process-contents(:src($xhtml),:@deps) {
- return "{$xhtml} decorated";
+ method process-contents($xhtml) {
+ return "{$xhtml.contents} decorated";
}
}
diff --git a/lib/WebCoso/Maker/RST.pm b/lib/WebCoso/Maker/RST.pm
index 76bc127..8f11817 100644
--- a/lib/WebCoso/Maker/RST.pm
+++ b/lib/WebCoso/Maker/RST.pm
@@ -1,7 +1,7 @@
# -*- mode: perl6 -*-
use WebCoso::Maker;
class WebCoso::Maker::RST does WebCoso::Maker['rest.txt','du.xml'] {
- method process-contents(:src($rst),:@deps) {
- return "{$rst} parsed";
+ method process-contents($rst) {
+ return "{$rst.contents} parsed";
}
}
diff --git a/lib/WebCoso/Maker/TT.pm b/lib/WebCoso/Maker/TT.pm
index 256cf54..39ba283 100644
--- a/lib/WebCoso/Maker/TT.pm
+++ b/lib/WebCoso/Maker/TT.pm
@@ -1,7 +1,7 @@
# -*- mode: perl6 -*-
use WebCoso::Maker;
class WebCoso::Maker::TT does WebCoso::Maker['tt','rest.txt'] {
- method process-contents(:src($tt),:@deps) {
- return "{$tt} expanded";
+ method process-contents($tt) {
+ return "{$tt.contents} expanded";
}
}
diff --git a/lib/WebCoso/Maker/XHTML.pm b/lib/WebCoso/Maker/XHTML.pm
index c2b1d9e..ea50ec5 100644
--- a/lib/WebCoso/Maker/XHTML.pm
+++ b/lib/WebCoso/Maker/XHTML.pm
@@ -1,7 +1,8 @@
# -*- mode: perl6 -*-
use WebCoso::Maker;
class WebCoso::Maker::XHTML does WebCoso::Maker['du.xml','xhtml'] {
- method process-contents(:src($du),:@deps) {
- return "{$du} converted";
+ method process-contents($du) {
+ my $stylesheet = $.get-file('du2xhtml.xsl');
+ return ("{$du.contents} converted",$stylesheet);
}
}