Details
-
Bug
-
Resolution: Fixed
-
Neutral
-
None
-
None
-
None
Description
The content type meta element is in the wrong place in the templating examples:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <html> <head> <title>Template Title</title> </head>
It should be inside the head:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Template Title</title>
</head>
Also, the following expression in the JSP examples is redundant. You don't need to declare the content type because the files are not served from docroot. They are served from the /templates folder inside the webapp, which means the servlet already knows the content type. (Setting the taglib is necessary.)
<%@ page contentType="text/html;charset=UTF-8" language="java" %>}}
To do:
- Move the meta elements inside the head in both languages in all examples.
- Remove the redundant declaration from JSP examples.
http://documentation.magnolia-cms.com/templating/introduction.html#Createthetemplatescript
Checklists
Acceptance criteria