Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'source_view_paths' vs 'view_paths' #352

Open
burning-brush opened this issue Aug 28, 2017 · 1 comment
Open

'source_view_paths' vs 'view_paths' #352

burning-brush opened this issue Aug 28, 2017 · 1 comment

Comments

@burning-brush
Copy link

The documentation says to use this in the sculpin_kernel.yml to change view directories.

sculpin_twig:
   view_paths: ['_views', '_layouts', ...]

But as far as I can tell this doesn't actually change any of the template directories. It was only after I dug through the configuration file for the twig extension that I found another node for source_view_paths. Using this in the config changes the template directories the way the documentation describes.

Am I missing something about view_paths or is the documentation wrong? I can't seem to find any place where view_paths is even passed on to the twig file loader the way source_view_paths is.

@dannybrown73
Copy link

dannybrown73 commented Feb 28, 2018

edit/ sorry. reread and got it working with the method mentioned above. Looks like a documentation error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants