Closed othercorey closed 4 years ago
BakeView will need to be updated to keep using old name.
I just checked this means now
{{ _view.fetch('content')|raw }}
etc are not working anymore in existing code right?
@dereuromark No, that never worked, I was mistaken.
Ah ok, this was in the .md examples in the repo. And for my tests it seemed to work actually :)
Err sorry _view.fetch()
should work
With these changes it now doesnt anymore. So careful with BC here, maybe we need to outline this.
The readme need a re-write when we are done with all these changes. You can enable BC by setting the viewVar
config to _view
.
I just realized that view variables are passed to View using view options key viewVars
so using viewVar
to customize View instance name is a bit too similar. It would be better to use viewVarName
.
That's probably still too similar. How about contextName
.
contextName
sounds good.
This let's you override the default
_view
template variable name.