views:

130

answers:

3

What's a good data structure for use in MVC web applications to use to pass data into view to ensure standardization and keep the view as non-coder friendly as possible?

A: 

Use a custom model class and keep it as non-coder friendly as possible :)
How you construct the model class strongly depends on the specific page.

Mehrdad Afshari
A: 

To keep it really simple you could just pass a dictionary with string keys and value.

tarn
A: 

I like django structure. It's very flexible. Example:

project/
       apps/
            app1/
                 models.py
                 views.py
                 forms.py
                 templates/ #or into root templates path
                 url.py #to dispatch
                 etc..
       templates/
                app1/
                    templates
Alexandr