View handling has been updated in tree.js to allow for passing additional parameters through the URL. The parameters are extracted from the URL, filtered based on what each view specifies in its meta().params, and then passed along when the view is initialized. This ensures that only parameters explicitly documented in the view's meta() are used, which keeps things clean and prevents unwanted data from being passed to views.
Within a view, parameters are defined and accepted in the view meta:
View handling has been updated in
tree.js
to allow for passing additional parameters through the URL. The parameters are extracted from the URL, filtered based on what each view specifies in its meta().params, and then passed along when the view is initialized. This ensures that only parameters explicitly documented in the view's meta() are used, which keeps things clean and prevents unwanted data from being passed to views.Within a view, parameters are defined and accepted in the view meta:
The parameters can then be used in the init: