I\'ve been a bad kid and used the following syntax in my partial templates to set default values for local variables if a value wasn\'t explicitly defined in the :locals has
In my case, I use:
<% variable ||= "" %>
in my partial. I don't have idea if that is good but for my is OK