summaryrefslogtreecommitdiff
path: root/lib/WebCoso/Maker
diff options
context:
space:
mode:
Diffstat (limited to 'lib/WebCoso/Maker')
-rw-r--r--lib/WebCoso/Maker/HTML.pm7
-rw-r--r--lib/WebCoso/Maker/RST.pm7
-rw-r--r--lib/WebCoso/Maker/TT.pm7
-rw-r--r--lib/WebCoso/Maker/XHTML.pm7
4 files changed, 28 insertions, 0 deletions
diff --git a/lib/WebCoso/Maker/HTML.pm b/lib/WebCoso/Maker/HTML.pm
new file mode 100644
index 0000000..1003cbc
--- /dev/null
+++ b/lib/WebCoso/Maker/HTML.pm
@@ -0,0 +1,7 @@
+# -*- mode: perl6 -*-
+use WebCoso::Maker;
+class WebCoso::Maker::HTML does WebCoso::Maker['xhtml','html'] {
+ method process-contents($xhtml) {
+ return "{$xhtml} decorated";
+ }
+}
diff --git a/lib/WebCoso/Maker/RST.pm b/lib/WebCoso/Maker/RST.pm
new file mode 100644
index 0000000..bf75ab1
--- /dev/null
+++ b/lib/WebCoso/Maker/RST.pm
@@ -0,0 +1,7 @@
+# -*- mode: perl6 -*-
+use WebCoso::Maker;
+class WebCoso::Maker::RST does WebCoso::Maker['rest.txt','du.xml'] {
+ method process-contents($rst) {
+ return "{$rst} parsed";
+ }
+}
diff --git a/lib/WebCoso/Maker/TT.pm b/lib/WebCoso/Maker/TT.pm
new file mode 100644
index 0000000..eb5e390
--- /dev/null
+++ b/lib/WebCoso/Maker/TT.pm
@@ -0,0 +1,7 @@
+# -*- mode: perl6 -*-
+use WebCoso::Maker;
+class WebCoso::Maker::TT does WebCoso::Maker['tt','rest.txt'] {
+ method process-contents($tt) {
+ return "{$tt} expanded";
+ }
+}
diff --git a/lib/WebCoso/Maker/XHTML.pm b/lib/WebCoso/Maker/XHTML.pm
new file mode 100644
index 0000000..d33c447
--- /dev/null
+++ b/lib/WebCoso/Maker/XHTML.pm
@@ -0,0 +1,7 @@
+# -*- mode: perl6 -*-
+use WebCoso::Maker;
+class WebCoso::Maker::XHTML does WebCoso::Maker['du.xml','xhtml'] {
+ method process-contents($du) {
+ return "{$du} converted";
+ }
+}