Excellent reply IMHO, I've been "slightly" slapped in the wrist on
previous posts when I talked about separation of logic and
presentation, a very subjective topic if you will, since where to
define that "fine line" in presentation vs logic implementation for
one thing..
I'd rather have a UI designer give me a mock up that I can write my
code for it, I respectfully think Massimo is spending way too much
time in this so called html helpers which already exists in the HTML
world, for instance, I'd rather have in my VIEW something like this:
<form method="post" action="">
<input type="hidden" id="foo" name="foo"
value="{{=request.vars.baz}}" />
...
<input type="text" id="eenie" name="meenie" value="{{=request.vars.get
('moe', '')}}" />
..
</form>
And have the underlying logic to handle my variables in my
controller..
Than to do a single VIEW with nothing on it but a {{=form}} and have
my pyhon code generate the html/markup for me
I believe the OP was leaning towards this scenario, they appear to
want to have an "Export yo web2Py" plug (which will internally create
a controller rather than a view) this hypothetical controller would
have all the code to in turn have web2py generate the markup for, I
personally like to have all my back-end done first, and then add it a
presentation layer on it, however a mock up will never hurts I have to
admit.
My application, pyforym, follows this specific pattern, I do not have
any html helpers in the controller nor I need to put them there, As an
example: I've already offset some UI work to a very good friend in
Australia and he made some changes to the UI (view) which did not
impact my code (controller) at all, yes, as I said again, this is a
"perspective" thing, but in 11+ years coding (hands-on) for a living
(in python in fact) I can tell you that it works and it is effective.
Will I trash talk or put down the logic/presentation mix up pattern?,
no way, programming in web2py is an "art" and one is entitled to use
all the tools that it provides, one thing is for sure, I'd continue to
advocate foe using this excellent framework whenever possible. cheers!
Julio
On Jun 29, 1:09 am, annet <[email protected]> wrote:
> I appreciate web2py as it is. In the past I worked with Adobe GoLive,
> NetBeans, JDeveloper and ADF and Filemaker. Beautiful software, I
> implemented use case after use case by simply dragging and dropping
> components and clicking my way through dialog boxes. However, the
> moment I wanted to adjust the generated code I was overwhelmed by the
> amount of code the software had generated in different files.
>
> Web2py is the first framework that allows me to implement my
> application the way I designed it, my lack of Python knowledge is the
> limit, not the framework. I love building my own views in html, css
> and js keeping structure, style and action separated, something none
> of these IDE's complied with.
>
> I hope web2py will stay as 'clean' as it is, and not become another
> 'NetBeansese' IDE.
>
> Annet.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---