use of org.apache.tapestry5.dom.MarkupModel in project tapestry-5 by apache.
the class MarkupWriterFactoryImpl method constructMarkupWriter.
private MarkupWriter constructMarkupWriter(ContentType contentType, boolean partial, boolean HTML5) {
final String mimeType = contentType.getMimeType();
boolean isHTML = mimeType.equalsIgnoreCase("text/html");
MarkupModel model;
if (isHTML)
model = HTML5 ? (partial ? html5PartialModel : html5Model) : (partial ? htmlPartialModel : htmlModel);
else
model = partial ? xmlPartialModel : xmlModel;
return new MarkupWriterImpl(model, contentType.getCharset(), mimeType);
}
Aggregations