I just committed some updates to the framework that people might be
interested in.
1. Thanks to inspiration from
http://html5boilerplate.com/, the
ColdMVC head tag (<c:head />) will now output multiple <head> tags
wrapped in IE conditional comments, like such:
<!--[if lt IE 7]> <html class="no-js ie6" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js ie7" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="no-js ie8" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]--
>
2. Added the <c:charset /> tag that outputs: <meta charset="utf-8" />
3. Added the <c:viewport /> tag that outputs: <meta name="viewport"
content="width=device-width, initial-scale=1.0" />
4. Added isMobile() to the request helper and exposed it as both a
view helper and an action helper, courtesy of
http://detectmobilebrowser.com/.
5. Updated the CGI scope helper facade so that you can modify the
values if you need to. This is done by copying the CGI scope into the
request scope when you first try to access it. For example, now when
you call $.cgi.get("request_method"), it will actually access
request.coldmvc.cgi.request_method rather than cgi.request_method
directly. This can be very useful if your app runs behind a proxy
server.
6. Added support for status text based error views. If your
application has an ErrorController, all errors are automatically
trapped during request dispatching and routed through the
ErrorController. ColdMVC will then attempt to render a status-specific
error view, first checking to see if a status code template exists ("/
views/error/404.cfm"), then check to see if a status text template
exists ("/views/error/not_found.cfm"), then a default error template
("/views/error/index.cfm"). I'll try to add some official
documentation for error handling to the reference guide sometime soon,
but for now hopefully this will suffice.
These changes were all included in version 1.3.7. Let me know if you
have any questions or comments.