Skip Menu |

This queue is for tickets about the Spoon CPAN distribution.

Report information
The Basics
Id: 11841
Status: new
Priority: 0/
Queue: Spoon

People
Owner: Nobody in particular
Requestors:
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: (no value)
Fixed in: (no value)



Subject: Make Template Toolkit an optional dependency
Spoon requires Template Toolkit. Template Toolkit is big. This makes Spoon harder to install than it really should be. Kwiki requires Spoon. So all this makes Kwiki harder to install than it should be. Template Toolkit really should be optional using the "recommends" feature of Module::Install. Its only used for one piece of Spoon. The following patch does this. It also removes an unnecessary "use Template" from Spoon::Template as Template is not used in that class. The tests pass but I can't really tell if I broke anything because both Spoon::Template and Spoon::Template::TT2 are undocumented.
Only in Spoon-0.21.mv: Makefile diff -ru Spoon-0.21/Makefile.PL Spoon-0.21.mv/Makefile.PL --- Spoon-0.21/Makefile.PL 2005-01-11 07:27:45.000000000 -0800 +++ Spoon-0.21.mv/Makefile.PL 2005-03-10 19:06:14.000000000 -0800 @@ -10,7 +10,7 @@ perl 5.6.1 Spiffy 0.22 IO::All 0.32 - Template 2.10 )); +recommends(Template => 2.10); &WriteAll(); --- Spoon-0.21/lib/Spoon/Template.pm 2004-12-21 16:41:54.000000000 -0800 +++ Spoon-0.21.mv/lib/Spoon/Template.pm 2005-03-10 19:04:38.000000000 -0800 @@ -1,6 +1,5 @@ package Spoon::Template; use Spoon::Base -Base; -use Template; const class_id => 'template'; const template_path => [ './template' ];