package Waft::JSON;
use 5.005;
use strict;
use vars qw( $VERSION );
BEGIN { eval { require warnings } ? 'warnings'->import : ( $^W = 1 ) }
use Waft 0.9907 ();
$VERSION = '0.03';
$VERSION = eval $V
\s* json \s* = (.*?)
%>}{<% \$Waft::Self->output( \$Waft::Self->convert_json($1) ); %>}gxms;
return $self->next(\$template, $template_file, $template_class);
}
sub convert_json { $
_[0]->_make_json(@_[1 .. $#_]) }
sub _make_json {
my ($self, @values) = @_;
VALUE:
for my $value (@values) {
if ( not defined $value ) {
$self->warn('Use of uninitial