Skip to content

Commit

Permalink
Misc housekeeping cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
abw committed Feb 8, 2012
1 parent 963ae03 commit 844511e
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -2,3 +2,5 @@
/blib
/pm_to_blib
/t/engine/output/*.tmp
MYMETA.json
MYMETA.yml
3 changes: 3 additions & 0 deletions Makefile.PL
Expand Up @@ -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',
Expand Down
13 changes: 13 additions & 0 deletions docs/pod/Template/TT3/TODO.pod
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion lib/Template/TT3/Utils.pm
Expand Up @@ -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.",
Expand Down
2 changes: 1 addition & 1 deletion 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,
Expand Down

0 comments on commit 844511e

Please sign in to comment.