Re: Euphoria MVC framework - template parser online

new topic     » goto parent     » topic index » view thread      » older message » newer message

I've only recently (last few years) been using a MVC paradigm for development of web apps. It seems you are putting Controller functionality into View space. Or is it reasonable/appropriate here?

i.e., this

    {% for user in user_list %} 
    <tr> 
        <td>{{ id(user) }}</td> 
        <td>{{ first_name(user) }}</td> 
        <td>{{ last_name(user) }}</td> 
        <td>{{ email_address(user) }}</td> 
        <td>{{ job_title(user) }}</td> 
        <td>{{ ip_address(user) }}</td> 
    </tr> 
    {% end for %} 

should be this

    {% for user in user_list %} 
    <tr> 
        <td>{{ user.id }}</td> 
        <td>{{ user.first_name }}</td> 
        <td>{{ user.last_name }}</td> 
        <td>{{ user.email_address }}</td> 
        <td>{{ user.job_title }}</td> 
        <td>{{ user.ip_address }}</td> 
    </tr> 
    {% end for %} 

Help me out!

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu