摘要:
Play has an efficient templating system which allows to dynamically generate HTML, XML, JSON or any text-based formatted document. The template engine... 阅读全文
摘要:
本章译者:@freewind业务逻辑代码通常位于模型(model)层。客户端(比如浏览器)无法直接调用其中的代码,所以模型对象提供的功能,必须作为资源以URI方式暴露给外部。客户端使用HTTP协议来操作这些资源,从而调用了内部的业务逻辑。但是,这种从资源到模型之间的映射是单向的:我们可以根据需要提供... 阅读全文
摘要:
HTTP路由HTTP路由(译者注:Play的路径映射机制)组件负责将HTTP请求交给对应的action(一个控制器Controller的公共静态方法)处理。对于MVC框架来说,一个HTTP请求可以看成一个事件。这个事件包含2方面的信息:请求的路径(例如 /clients/1542, /photos/... 阅读全文
摘要:
The MVC application modelA Play application follows the MVC architectural pattern applied to the web architecture.This pattern splits the application ... 阅读全文