I'm working on a web-app without a framework right now, and I'm trying to structure it as a MVC app. The problem is, there are some technical aspects of MVC apps that escape me.
Primarily, how should a view be build? I'd like to use a markup language like eRuby or #haml, but I don't know how exactly they work and how to implement them in a non-Rails application.
How does the view get data from the model and directions from the controller? In Rails, this is all obfuscated. How can I implement this? What's the theory behind this? Do I make a connection to my database in the view and then use it freely there? Do I have it pass through another program aside from just the #haml renderer to give it data?
Thanks!