Add a view namespace?

Hello there fellow Roots fans!

So in Sage 9 I used to be able to edit

theme-folder/config/view.php

and add something like…

'namespaces' => [
		'SVG' => get_theme_file_path() . '/resources/assets/svg',
],

Which allowed me to include SVGS blade files like this…

@include( 'SVG::some-svg-file', [ 'color' => '#000' ] )

Is there a way to do the same in Sage 10?

Sure can! See Acorn 2.x: Directory Structure | Roots Documentation for information on publishing config files

1 Like

Awesome! thank you! :slight_smile:

1 Like