@Deprecated class AppendingStrategy extends Object
The standard <head> merging strategy, which simply appends the
content elements to the layout ones.
The default behaviour of the layout dialect has historically been to place
the <title> element at the beginning of the <head> element
during the decoration process; an arbitrary design decision which made
development of this library easier. However, this runs against the
expectations of developers who wished to control the order of elements, most
notably the position of a <meta charset...> element.
This sorting strategy has been updated in 2.4.0 to retain this behaviour as backwards compatibility with the 2.x versions of the layout dialect, but is now deprecated and expected to be replaced by the AppendingRespectLayoutTitleStrategy sorter from version 3.x onwards.
| Type Params | Return Type | Name and description |
|---|---|---|
|
int |
findPositionForModel(IModel headModel, IModel childModel)Returns the position at the end of the <head> section. |