Comments (1)
One way is to change the default 404 page to refer to a japid version, eg: (in app/views/errors/404.html)
<html>
<head>
<title>Not found</title>
</head>
<body>
#{if play.mode.name() == 'DEV'}
#{404 result /}
#{/if}
#{else}
${cn.bran.play.JapidPlayRenderer.renderWith("japidviews.error404").raw()}
#{/else}
</body>
</html>
Then do whatever you want with an Japid based "error404.html" in you japidviews folder.
The above example let your Japid 404 page to handle 404 in prod mode.
from japid.
Related Issues (20)
- play-japid cold start issue on GAE HOT 3
- Break loop HOT 3
- RenderArgs in FunctionalTests HOT 1
- [optimization] stript whitespaces from template HOT 2
- Loosing reference of the original StringBuilder in the RenderResultPartial HOT 1
- Extra newline at the beginning HOT 2
- JapidRenderer.refreshClasses() scans also outside of japidviews subfolder HOT 1
- Doc needed on where the compiled class files be stored for new japidroot approach HOT 25
- i18n : Message lookup commma nd takes arguments like in a Java method call. Don't use single quotation marks to quote a message name for instance. 'key.label' HOT 6
- (Play! fork) production mode errors not professional as in official play! 1.2.5 HOT 19
- Play!在dev模式下,但启动完成后,在打开浏览器页面时,并且有比较耗时的PlayPlugin 执行 onApplicationStart()时出现 HOT 3
- Adding japid to benchmark HOT 19
- Does japid work on GAE (with play-gae) ? HOT 3
- Elvis operator does NOT escape correctly when using escaped expression notation!!! HOT 5
- Wrong statement gets logged HOT 2
- 使用play 1.2.5.3/1.2.7,DEV模式下在LInux(CentOS 6.3)中不能增量编译模板文件,每次都全量编译模板。 HOT 15
- Update JavaParser
- How is it compared to fizzed/rocker, also a compiled pure java template engine
- 版本号问题
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from japid.