I'm trying to pass values inside Phoenix EEx shared templates (templates that I reuse). So far, so good, but now I would like to make some of them mandatory and others optional. For example:
<a href="<=% @url %>" class="core Item <%= className %>">
urlshould be mandatory - this is the default (OK);classNameshould be optional - I can't make it because if I don't include it when calling the template (<%= render MyProject.SharedView, "myTemplate.html", url:"logo2.png" %>) there's an error. How can I do this?