Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Misc housekeeping cleanups

  • Loading branch information...
commit 844511e4583d5ae1772b852360c3fe23778e66d7 1 parent 963ae03
@abw authored
View
2  .gitignore
@@ -2,3 +2,5 @@
/blib
/pm_to_blib
/t/engine/output/*.tmp
+MYMETA.json
+MYMETA.yml
View
3  Makefile.PL
@@ -6,6 +6,9 @@ my %opts = (
'VERSION' => 3.00,
# 'VERSION_FROM' => 'lib/Template/TT3.pm',
'PMLIBDIRS' => [ 'lib' ],
+ 'PREREQ_PM' => {
+ Badger => 0.09,
+ },
'dist' => {
'COMPRESS' => 'gzip',
'SUFFIX' => 'gz',
View
13 docs/pod/Template/TT3/TODO.pod
@@ -97,6 +97,18 @@ the class name without checking to see if it can be loaded. (may be fixed?)
Add name(), pair() and pairs() methods to all elements that require them.
+=head2 %scalar expansion to (scalar => scalar)
+
+At present the '%' prefix operator when applied to a scalar variable will
+return a hash containing the name of the variable and it's value. e.g.
+
+ hash = { %wibble } # this has the same effect
+ hash = { wibble=wibble } # as this
+
+I'm a bit wary about this. It fell out of the parser naturally but I think
+it might be dangerous. In which case we need to fix the parser/element to
+not do what it thinks is the right thing.
+
=head2 list_values() / items() methods
Change element 'list_values()' to 'items()', or figure out how to map it
@@ -210,6 +222,7 @@ compiler.
Figure out what to do with PARAMS. They don't get recognised as HASH vars
so they don't get the same behaviours that it has. e.g. "a(%b) = c(%b)".
Here the '%b' isn't expanded as a hash because it's a PARAMS not a HASH.
+See the failing tests in t/vmethods/test.t
=head2 template_path
View
2  lib/Template/TT3/Utils.pm
@@ -21,7 +21,7 @@ our @ADVICE = (
'Did you read the documentation?',
'Eat more fruit and vegetables.',
'Chew your food properly before swallowing.',
- 'Get lots of excercise.',
+ 'Get lots of exercise.',
"Don't run with scissors.",
'Never look a gift horse in the mouth.',
"Don't give a badger vodka to drink. They prefer beer.",
View
2  lib/Template3.pm
@@ -1,6 +1,6 @@
package Template3;
-use 5.6.1;
+use 5.008;
use Template::TT3::Class
version => 2.71,
debug => 0,
Please sign in to comment.
Something went wrong with that request. Please try again.