Layout::Base: besseres sub_layout javascript/css dispatching
[kivitendo-erp.git] / SL / Layout / Dispatcher.pm
index b125a26..fa63337 100644 (file)
@@ -167,6 +167,12 @@ Non-existing files will be pruned from the list.
 
 Backwards compatible alias for C<add_stylesheets>. Deprecated.
 
+=item C<static_stylesheets>
+
+Can be overwritten in sub-layouts to return a list of needed stylesheets. The
+values will be resolved by the actual layout in addition to the
+C<add_stylesheets> accumulator.
+
 =item C<add_javascripts>
 
 Adds the list of arguments to the list of used javascripts.
@@ -179,6 +185,13 @@ Non-existing files will be pruned from the list.
 
 Backwards compatible alias for C<add_javascripts>. Deprecated.
 
+
+=item C<static_javascripts>
+
+Can be overwritten in sub-layouts to return a list of needed javascripts. The
+values will be resolved by the actual layout in addition to the
+C<add_javascripts> accumulator.
+
 =item C<add_javascripts_inline>
 
 Add a snippet of javascript.