App-Standup-Diary

 view release on metacpan or  search on metacpan

lib/App/Standup/Diary/Template.pm  view on Meta::CPAN

      - done
      - todo
      - blocking

      END_TEMPLATE

    return $diary_template;
  }

  method render {
    my $mt = Mojo::Template->new(auto_escape => 1);
    my $month = $self->date->mon;
    my $month_numeric = $self->date->mon < 10 ? "0$month" : $month;
    return $mt->vars(1)->render(
      $self->get_template, {
        priorities_date => $self->date->year . '-' . $month_numeric,
        project_name    => $self->project_name,
        today           => $self->date->ymd
      });
  }
}



( run in 0.458 second using v1.01-cache-2.11-cpan-5467b0d2c73 )