I'm not sure what you mean. I'm statically generating my HTML by
running the ttree script; I'm not invoking TT from my own perl.
BTW, I'm running this on windows (using strawberry perl).
I manually edited Template.pm and added "BEGIN { push @INC, '.' }". The
generated HTML is the same as before and I don't see any warning
messages. Then again, I should try removing my addition and regenerating
the site to see if I get any problems as well (that is, I'm not sure if
my change actually fixed anything)
Kiss Gabor (Bitman) <mailto:ki...@ssg.ki.iif.hu>
Friday, February 09, 2018 11:15 PM
Is there any TT patch to address that problem? I am sitting on an older
version of perl and haven't updated for awhile for fear of breaking by
websites.
Add this line to the script:
use lib '.';
There are many discussions and workaround, please use google.
Regards
Gabor
_______________________________________________
templates mailing list
templates@lists.ourshack.com
https://lists.ourshack.com/mailman/listinfo/templates
Jim Battle <mailto:jbat...@pobox.com>
Friday, February 09, 2018 9:13 PM
Is there any TT patch to address that problem? I am sitting on an
older version of perl and haven't updated for awhile for fear of
breaking by websites.
Thanks
Johan Vromans <mailto:jvrom...@squirrel.nl>
Sunday, October 29, 2017 1:09 PM
On Sun, 29 Oct 2017 19:21:48 +0700, "Chakkit Ngamsom" <chak...@ibiz.co.th>
As of Perl 5.26, the current directory ( '.' ) is no longer in @INC. This
removal has caused many problems in many tools and programs.
There are many discussions and workaround, please use google.
-- Johan
_______________________________________________
templates mailing list
templates@lists.ourshack.com
https://lists.ourshack.com/mailman/listinfo/templates
Chakkit Ngamsom <mailto:chak...@ibiz.co.th>
Sunday, October 29, 2017 7:21 AM
Hi,
In Perl 5.26.1 I’ve got the below warning:
[warn] Use of uninitialized value $compiled in concatenation (.) or
string at
/Users/lynx/perl5/perlbrew/perls/perl-5.26.1/lib/site_perl/5.26.1/darwin-thread-multi-2level/Template/Provider.pm
line 572.
[warn] compiled template : Can't locate
tmp/ttc/view/dist/layouts/main.tt.ttc in @INC (@INC contains:
/Users/lynx/perl5/perlbrew/perls/perl-5.26.1/lib/site_perl/5.26.1/darwin-thread-multi-2level
/Users/lynx/perl5/perlbrew/perls/perl-5.26.1/lib/site_perl/5.26.1
/Users/lynx/perl5/perlbrew/perls/perl-5.26.1/lib/5.26.1/darwin-thread-multi-2level
/Users/lynx/perl5/perlbrew/perls/perl-5.26.1/lib/5.26.1) at
/Users/lynx/perl5/perlbrew/perls/perl-5.26.1/lib/site_perl/5.26.1/darwin-thread-multi-2level/Template/Provider.pm
line 571.
My app is running with Catalyst 5.90115 and Template Tookit 2.27 on
macOS 10.12.6.
I switched to Perl 5.24.3 and same Template Toolkit version via
perlbrew and no errors there.
Note that the app can render as usual but just the warning messages in
log.
It logged every time each file is rendered.
Regards,
--
Chakkit Ngamsom
_______________________________________________
templates mailing list
templates@lists.ourshack.com
https://lists.ourshack.com/mailman/listinfo/templates
_______________________________________________
templates mailing list
templates@lists.ourshack.com
https://lists.ourshack.com/mailman/listinfo/templates