Move template names to enum in FreeMarkerHttpServlet and constants in subclasses.

This commit is contained in:
rjy7 2010-09-20 15:40:35 +00:00
parent 89391fbc96
commit c0a8d603ed
19 changed files with 243 additions and 113 deletions

View file

@ -0,0 +1,7 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- Standard template to display an error message generated from any controller. Keeps this out of individual templates. -->
<#if errorMessage??>
<p>${errorMessage}</p>
</#if>

View file

@ -0,0 +1,7 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- Template for general system error. -->
<p>There was an error in the system.</p>
<p>Return to the <a href="${urls.home}">home page</a>.</p>

View file

@ -0,0 +1,7 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- Standard template to display an error message generated from any controller. Keeps this out of individual templates. -->
<h2>${title}</h2>
<#include "errorMessage.ftl">