[web2py] Function in view in model less app

2014-11-30 Thread Ruud Schroen
Hi there, I'm building a webapp with the model less app approach by Bruno Rocha and I stumble upon a problem. Usually when you use models you can define function which can later be used inside a view. How would I do this with a model less approach? -- Resources: - http://web2py.com -

[web2py] Function in view in model less app

2014-11-30 Thread Anthony
Of course, if you define a function in a module, you will need to explicitly import it. You can import it in a model file if you like. Anthony -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -