lestrrat-p5 / catalyst-view-xslate Goto Github PK
View Code? Open in Web Editor NEWText::Xslate View Class
License: Other
Text::Xslate View Class
License: Other
Hello,
Please see the following test failure:
`Output from './Build test':
t/003_helper.t ....... ok
t/001_load.t ......... ok
Undefined subroutine &main::ctx_request called at t/005_memory_leak.t line 13.
t/005_memory_leak.t ..
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 3/3 subtests
This occurs because your testsuite attempts to create a temporary directory with a hardcoded name (specifically, /tmp/TestApp). However, if another user has already built your module on the same computer, it will be impossible to access that directory. Please consider using a non-hardcoded name for your top-level temporary directory.
The verbose attribute should be an integer, not bool. The following link discusses setting the verbose attribute to values >= 2. http://search.cpan.org/~gfuji/Text-Xslate/lib/Text/Xslate/Manual/Debugging.pod#Setting_verbose_=%3E_2
See subject.
A sample fail report: http://www.cpantesters.org/cpan/report/2faa1176-5250-11e6-b6f4-8bdfed09dfea
Statistical analysis (negative theta is bad):
****************************************************************
Regression 'mod:Catalyst'
****************************************************************
Name Theta StdErr T-stat
[0='const'] 1.0000 0.0000 111412901754845408.00
[1='eq_5.90097'] 0.0000 0.0000 0.00
[2='eq_5.90100'] 0.0000 0.0000 0.00
[3='eq_5.90101'] 0.0000 0.0000 0.00
[4='eq_5.90102'] 0.0000 0.0000 0.00
[5='eq_5.90103'] 0.0000 0.0000 0.00
[6='eq_5.90104'] 0.0000 0.0000 0.00
[7='eq_5.90105'] 0.0000 0.0000 0.00
[8='eq_5.90106'] 0.0000 0.0000 0.00
[9='eq_5.90111'] -1.0000 0.0000 -90968253354067904.00
R^2= 1.000, N= 61, K= 10
****************************************************************
Catalyst::View::Xslate doesn't have a pre_process_handler
attribute, so there's no easy way to set one for Text::Xslate.
Maybe there should just be an additional_xslate_args
hash. That way, you wouldn't need to update Catalyst::View::Xslate any time Text::Xslate got a new configuration option.
I've worked around this with an around
handler on _build_xslate
, but that's poking into the internals in a way I'd like to avoid.
follow up for RT #68799 and to resummarize here (sorry, just hating on RT)
suffix is not provided per docs in CVX::Helper in 0.12.
patch was added in the latest git.
The project I had been working on was killed / or moved to dancer; so I apologize for not getting back to you.
It looks like the test now passes if suffix is defined.
However, I I'm not sure I understand the difference between suffix and template_extension. It seems that the former is for Text::Xslate and the latter is for Catalyst. However, why would I want both? it would seem that perhaps they should simply be an alias? DWIM principle.
Is it available to manage a cache of templates in controller?
It will be pretty useful if it could be managed over stash('cache_template') for example.
The documentation says that attributes that are passed along to the Text::Xslate constructor cause any previously-constructed Text::Xslate object to be cleared. But you left off the trigger that does the clearing from some of the documented attributes.
In particular, I noticed line_start
, tag_start
, tag_end
, warn_handler
, die_handler
, and pre_process_handler
all have this problem. There might be others I missed.
I want to set up a path for templates files in controller. In TT it's available over $c->stash->{'additional_template_paths'} = [...];
Is it available in Catalyst::View::Xslate? I think it's available when changing
path => $self->path || [ $c->path_to('root') ], at your code to
path => $self->path || [ $c->stash('additional_template_paths')] || [$c->path_to('root')],
May be other solution exists, let me know.
no option to provide a header or footer option to xslate.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.