Skip Menu |

This queue is for tickets about the MojoX-Renderer-Handlebars CPAN distribution.

Report information
The Basics
Id: 125212
Status: open
Priority: 0/
Queue: MojoX-Renderer-Handlebars

People
Owner: Nobody in particular
Requestors: john.krull [...] assurant.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in:
  • 0.01
  • 0.02
  • 0.03
  • 0.04
Fixed in: (no value)



Subject: Plugin is out of sync with latest Mojo
Date: Wed, 25 Apr 2018 21:10:27 +0000
To: "bug-MojoX-Renderer-Handlebars [...] rt.cpan.org" <bug-MojoX-Renderer-Handlebars [...] rt.cpan.org>
From: "John A. Krull" <john.krull [...] assurant.com>
Perl version: 5.16.3 Module: MojoX-Renderer-Handlebars-0.04<http://search.cpan.org/~rmzg/MojoX-Renderer-Handlebars-0.04/> This module seems to use an outdated API method that no longer exists in Mojo 7.76. Changing calls from rel_dir to rel_file seems to resolve the issue. ********************************************************************** This e-mail message and all attachments transmitted with it may contain legally privileged and/or confidential information intended solely for the use of the addressee(s). If the reader of this message is not the intended recipient, you are hereby notified that any reading, dissemination, distribution, copying, forwarding or other use of this message or its attachments is strictly prohibited. If you have received this message in error, please notify the sender immediately and delete this message and all copies and backups thereof. Thank you.
On Wed Apr 25 18:03:27 2018, john.krull@assurant.com wrote: Show quoted text
> Perl version: 5.16.3 > > Module: MojoX-Renderer-Handlebars- > 0.04<http://search.cpan.org/~rmzg/MojoX-Renderer-Handlebars-0.04/> > > > This module seems to use an outdated API method that no longer exists > in Mojo 7.76. > > > Changing calls from rel_dir to rel_file seems to resolve the issue. > > ********************************************************************** > This e-mail message and all attachments transmitted with it may > contain legally privileged and/or confidential information intended > solely for the use of the addressee(s). If the reader of this message > is not the intended recipient, you are hereby notified that any > reading, dissemination, distribution, copying, forwarding or other use > of this message or its attachments is strictly prohibited. If you have > received this message in error, please notify the sender immediately > and delete this message and all copies and backups thereof. Thank you.
Robert, Here's a patch that created this evening. We hope that it helps. Matt
Subject: 0001-Change-rel_dir-to-rel_file.patch
From badc901557b483e085880e6fe72727b427428b1d Mon Sep 17 00:00:00 2001 From: Matthew Musgrove <matthew.musgrove@assurant.com> Date: Wed, 25 Apr 2018 17:56:50 -0500 Subject: [PATCH] Change rel_dir to rel_file --- lib/MojoX/Renderer/Handlebars.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/MojoX/Renderer/Handlebars.pm b/lib/MojoX/Renderer/Handlebars.pm index 3384767..8d620dc 100644 --- a/lib/MojoX/Renderer/Handlebars.pm +++ b/lib/MojoX/Renderer/Handlebars.pm @@ -24,10 +24,10 @@ sub _init { my $app = $args{mojo} || $args{app}; my $cache_dir; - my @path = $app->home->rel_dir('templates'); + my @path = $app->home->rel_file('templates'); if ($app) { - $cache_dir = $app->home->rel_dir('tmp/compiled_templates'); + $cache_dir = $app->home->rel_file('tmp/compiled_templates'); push @path, data_section( $app->renderer->classes->[0] ); } else { -- 2.14.3