diff options
author | dakkar <dakkar@thenautilus.net> | 2015-09-05 16:35:10 +0100 |
---|---|---|
committer | dakkar <dakkar@thenautilus.net> | 2015-09-05 16:35:10 +0100 |
commit | cd8cecc2a64e623d1342b7b37aa1506ad40c3a6e (patch) | |
tree | 5c1981e36755928b189edbac48629d280bef480c /lib/WebCoso/Doc/Base.pm | |
parent | first maker test (diff) | |
download | WebCoso-p6-cd8cecc2a64e623d1342b7b37aa1506ad40c3a6e.tar.gz WebCoso-p6-cd8cecc2a64e623d1342b7b37aa1506ad40c3a6e.tar.bz2 WebCoso-p6-cd8cecc2a64e623d1342b7b37aa1506ad40c3a6e.zip |
deps test fails
Diffstat (limited to 'lib/WebCoso/Doc/Base.pm')
-rw-r--r-- | lib/WebCoso/Doc/Base.pm | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/lib/WebCoso/Doc/Base.pm b/lib/WebCoso/Doc/Base.pm index 9ceefa1..46afce8 100644 --- a/lib/WebCoso/Doc/Base.pm +++ b/lib/WebCoso/Doc/Base.pm @@ -4,16 +4,26 @@ use WebCoso::Maker::RST; use WebCoso::Maker::XHTML; use WebCoso::Maker::HTML; -role WebCoso::Doc::Base[$basename] { +class WebCoso::Doc::Base { has $!wc; has $.dir; - has $.tt = WebCoso::Maker::TT.new(:$basename,:$!dir,:$!wc); - has $.rst = WebCoso::Maker::RST.new(:$basename,:$!dir,:$!wc); - has $.xhtml = WebCoso::Maker::XHTML.new(:$basename,:$!dir,:$!wc); - has $.html = WebCoso::Maker::HTML.new(:$basename,:$!dir,:$!wc); + has $.tt; + has $.rst; + has $.xhtml; + has $.html; + method basename() { ... } + + submethod BUILD(:$wc,:$dir) { + my $basename = self.basename; + $!tt = WebCoso::Maker::TT.new(:$basename,:$dir,:$wc); + $!rst = WebCoso::Maker::RST.new(:$basename,:$dir,:$wc); + $!xhtml = WebCoso::Maker::XHTML.new(:$basename,:$dir,:$wc); + $!html = WebCoso::Maker::HTML.new(:$basename,:$dir,:$wc); + } + method make() { - .html.get-files(); + $.html.get-files(); } } |