elixir-web / weber

[WiP] Web framework for Elixir inspired by Rails [#WeberMVC at freenode]
http://elixir-web.github.io/weber/
MIT License
370 stars 33 forks source link

Add basic partial functionality #170

Closed pauldipietro closed 10 years ago

pauldipietro commented 10 years ago

Very basic functionality for partials added; partials are located in the lib/views/partials folder.

0xAX commented 10 years ago

Hello @orteipid,

First of all thanks for the PR. I looked in diff and it looks very good for me, only one question. Can i merge it now with master or you want to finish full partials functional? (look #164)

pauldipietro commented 10 years ago

Hey @0xAX,

I (or someone else if I don't get a chance) can always add in the other bits and pieces of it in the near future. Perhaps it would be worthwhile to add an argument option to allow it to look within a given folder?

That is to say that if lib/views/partials is the base path for partial files, there can be lib/views/partials/[model] directories which hold more specific ones. Aside from that there's the whole thing with local variables, as well.

I'm really very new to Elixir so it might be a bit over my head but I enjoy helping as I'm able.

0xAX commented 10 years ago

Thank you @orteipid, merged