Commit Graph
71 Commits
Author SHA1 Message Date
Graham Ollis 02fce2bfdd simplify 2013-01-28 11:51:38 -05:00
Graham Ollis c736f2ed2d doco 2013-01-28 09:28:07 -05:00
Graham Ollis 408cba6c35 fix but where DATA templates are not being rendered 2013-01-27 22:48:55 -05:00
Graham Ollis c00f8934de rm not_found, as it is no longer used. 2013-01-09 14:14:44 -05:00
Rafael Kitover 4225658dbc report not finding a template correctly
TtRenderer was dying with a 'not found' error when a template was not
found, instead of returning 0, which was interfering with things like
the error screen.

Use $provider->fetch to find templates and return 0 when a template is
not found.
2013-01-09 13:17:11 -05:00
Graham Ollis c7012a1be0 doco typo 2012-12-29 10:27:32 -05:00
Graham Ollis f4beaf9864 use non-capturing for performance 2012-12-19 12:33:19 -05:00
Graham Ollis 37ee2ee753 support multiple renderer paths 2012-12-18 11:00:47 -05:00
Graham Ollis 194a9219e9 fix cpanm warning. 2012-10-02 11:42:17 -04:00
Graham Ollis 5505c5d82a utf-8 for perldoc 2012-10-02 11:34:42 -04:00
Graham Ollis daceb5876f documentation updates. 2012-10-02 11:33:07 -04:00
Graham Ollis 54d13555ef Merge branch 'master' of github.com:abh/mojox-renderer-tt 2012-08-31 08:18:19 -04:00
Graham Ollis d6d98cc533 fix for win32 2012-08-31 08:18:01 -04:00
Graham Ollis 51af0a7893 return 0 on not found 2012-08-25 07:15:15 -04:00
Graham Ollis e64ce4c484 refactor fetching templates from DATA 2012-08-24 05:47:54 -04:00
Graham Ollis 20d795cb51 Compatibility with mojo 3.33 2012-08-23 22:20:08 -04:00
Graham Ollis 870d195761 use die instead of render_exception 2012-08-23 15:26:38 -04:00
Graham Ollis 24990483e5 avoid deep recursion
when using a tt template for exceptions, and there is
an exception in the template, don't go into infinite
recursion.
2012-08-21 16:30:19 -04:00
Graham Ollis 28ae3d62f8 return 1 on failure 2012-08-21 15:44:10 -03:00
Ask Bjørn Hansen 511ee4463b Let Dist::Zilla set VERSION
Closes #17
2012-06-05 16:04:07 -07:00
Ask Bjørn Hansen bdc9f56452 Use app->renderer->paths to find template directories
Closes #20
2012-06-05 15:53:08 -07:00
Matthias Bethke 989ea57cf9 Fixed double TT rendering on error
If a template produced a rendering error in process() but did not produce one
when called without stash variables, the Mojo::Exception would be built
incorrectly, leading to an exception that masked the original error.
2012-05-17 14:00:17 -06:00
Ask Bjørn Hansen a89a9a4344 Merge pull request #21 from marcusramberg/move_cache
Cache templates in tmpdir by default
2012-02-01 01:17:52 -08:00
Marcus Ramberg 78c9d24bc7 Cache templates in tmpdir by default 2012-01-25 15:11:11 +01:00
Ask Bjørn Hansen 0b0acd510e Document the 'c' stash variable (RT#70866, Matthias Bethke) 2011-10-08 21:04:17 -07:00
Magnus Holm bd48aa5066 Fix cycles 2011-09-07 11:05:55 +02:00
Cosimo Streppone dae8329981 [GH#12] Drop MojoX::* namespace
Renamed MojoX:: namespace to Mojolicious::Plugin::TtRenderer::Engine,
so there's ::Engine, ::Helper and ::Provider.

MojoX:: is deprecated and not to be used, according to @sri.
2011-08-01 11:56:25 +02:00
Ask Bjørn Hansen 698fc48b58 Compatibility with Mojolicious 1.3+ 2011-06-07 17:38:10 -07:00
Htbaa 0acdb2fcde Simplified regex and added comment why backslashes are being converted 2011-02-26 19:56:17 +01:00
Htbaa dc52fec399 Inline wrappers and includes now work on Windows
closes gh-13
2011-02-26 12:46:02 +01:00
Marcus Ramberg 323d5a9294 Change to use relative paths, add exception template for tests 2011-02-06 08:50:02 +01:00
Ask Bjørn Hansen fc453fe4fb Try fixing tests on Strawberry Perl (RT#65282)
(thanks Christiaan Kras)
2011-02-05 12:12:47 -08:00
Maxim VuetsandAsk Bjørn Hansen 5e5c23d786 Make Mojolicious 'layout'/'extends' working 2011-02-05 10:02:09 -08:00
Marcus Ramberg 01b8f94a2b Fix inline rendering and test failures 2011-01-22 17:50:08 +01:00
Marcus Ramberg 0d419c9ecd Support new mojolicious error template 2011-01-22 14:42:15 +01:00
Árpád Szász d51eea608b Fixed helper compatibility with Mojolicious 1.0 2010-12-28 00:28:50 +02:00
Maxim VuetsandAsk Bjørn Hansen 0588884a9f Fix POD synopsis 2010-10-09 14:50:25 -07:00
Ask Bjørn Hansen 3bddf34485 'inline' argument is in stash, not in options for _render() 2010-10-05 00:38:44 -07:00
vti 201774941a Added inline template support 2010-10-05 09:02:39 +02:00
Ask Bjørn Hansen 89e744d8de Let Dist::Zilla help manage the VERSION number 2010-08-02 01:41:37 -07:00
Ask Bjørn Hansen 5315d1efda Use Dist::Zilla to make releases 2010-08-02 01:35:41 -07:00
vti 9f26a20192 Fixed template path 2010-07-29 15:14:13 +03:00
vti 731fe52836 Updated documentation 2010-06-15 13:53:36 +02:00
vti 988d1f954b Die when helper is not found 2010-06-15 13:42:22 +02:00
vti 1e4eeba737 Added helpers 2010-06-15 13:29:30 +02:00
vti 857e517039 Don't pollute namespace 2010-06-15 12:34:05 +02:00
vti 96d2be17b4 Made it more modern 2010-06-15 12:27:12 +02:00
Ask Bjørn Hansen a2ce996b97 Minor documentation updates 2010-04-20 22:54:08 -07:00
Ask Bjørn Hansen c4c554a46a Prepare 0.31 2009-09-11 16:02:24 -07:00
Ask Bjørn Hansen f2d62f0a25 Remove deprecated 'new' method 2009-09-11 16:01:24 -07:00