[Catalyst] Google's Summer of Code
Bill Moseley
moseley at hank.org
Mon Apr 17 03:03:22 CEST 2006
On Sat, Apr 15, 2006 at 05:29:30PM -0400, Jason Yates wrote:
> Plus I'd also like to see some simplification of some other aspects.
> An example would be UploadProgress, in Rails all you do in the view is
> add this:
>
> <%= form_tag_with_upload_progress %>
> <%= file_field :model, :file_column %>
> <%= submit_tag 'Upload' %>
> <%= upload_status_tag %>
> <%= end_form_tag %>
Is that simplification?
<%= end_form_tag %> vs. </form>
<%= submit_tag 'Upload' %> vs. <input type="submit" value="Upload">
> That is it. In Catalyst you have:
>
> <form onsubmit="watch_progress(this);">
> ...
> </form>
I prefer that method, although I keep the javascript separate:
[% include_javascript('progress') %]
<form id="progress" ...>
--
Bill Moseley
moseley at hank.org
More information about the Catalyst
mailing list