You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use the {{> partial_name }} syntax described in http://mustache.github.com/mustache.5.html in order to render a partial within another partial, but I'm getting an error.
Thanks. We doesn't have such problem, because we doesn't use partials (its little slowdown rendering). I commit little fix for partials, you can try it by adding in Gemfile:
Now you can use partials in ActiveView and JavaScript. Sample of usage you can find in demo project, source code.
We have one problem for now - it search partials from root of templating directory. We need more time to do it in Rails way, but for now this fix should help you.
I'm trying to use the {{> partial_name }} syntax described in http://mustache.github.com/mustache.5.html in order to render a partial within another partial, but I'm getting an error.
This is my view file:
app/views/groups/index.erb
And this mustache template works without problems:
app/templates/groups/_index.mustache
However, if I split that template in two different files:
app/templates/groups/_index.mustache
app/templates/groups/_group.mustache
Then I get the following error:
Errno::ENOENT in Groups#index
Showing /home/alexishevia/projects/Tutoriapps/app/templates/groups/_index.mustache where line #1 raised:
No such file or directory - ./group.mustache
The text was updated successfully, but these errors were encountered: