Passing a map to the frontend constructor will merge this map into the template context:
new Frontend(
new HandlersIn('com.example.skills.web'),
new Handlebars($this->environment->path('src/main/handlebars')),
['assets' => '/assets/'.$fingerprint]
)
The previous parameter here was base, a string which would be passed as "base" in the template context. If a string is used, this behavior is retained.
Passing a map to the frontend constructor will merge this map into the template context:
The previous parameter here was base, a string which would be passed as "base" in the template context. If a string is used, this behavior is retained.
See https://github.com/xp-forge/frontend/issues/15#issuecomment-812842250