Closed 0xAX closed 10 years ago
Proposal
Add render partials helpers to the weber/lib/helper - partial.ex.
render
weber/lib/helper
partial.ex
Weber.Helper.Partial
3.. Rendering just partial, without any options.
If we have /views/app/index.html with:
/views/app/index.html
<%= render "menu" %>
render will find /views/app/_menu.html and put it's content instead render helper or empty "" if there is no partial with this name.
/views/app/_menu.html
""
<%= render "menu", [vars: @menus] %>
Any additional suggestions? cc: @matheusca, @cbd
is anybody whants to grab?
I'm going to take a crack at this
Proposal
Add
render
partials helpers to theweber/lib/helper
-partial.ex
.Weber.Helper.Partial
Weber.Helper.Partial
to the every view with: https://github.com/0xAX/weber/blob/master/lib/weber/utils/utils.ex3.. Rendering just partial, without any options.
If we have
/views/app/index.html
with:render
will find/views/app/_menu.html
and put it's content insteadrender
helper or empty""
if there is no partial with this name.Any additional suggestions? cc: @matheusca, @cbd