On Friday, October 21, 2011 5:50:30 PM UTC-4, Paul wrote:
>
> The "from scratch" steps I too were from the Admin page Views section. I
> entered "first" intot the "create file with filename" edit control and chose
> the "Create" button.
>
> When I do this in a new application, the resulting first.html file
> contains:
>
> {{extend 'layout.html'}}
> <h1>This is the first.html template</h1>
> {{=BEAUTIFY(response._vars)}}
>
Yes, that's just a template generated by the admin app. You can delete all
that and enter your own code. You can also just create a view file from
scratch using any text editor (no need to use admin).
Note, response._vars is the dictionary returned by the controller function,
and the BEAUTIFY helper turns lists and dictionaries of objects into HTML.
So, {{=BEAUTIFY(response._vars)}} is a quick and easy way to display the
objects returned by the controller without having to really code a view. It
would typically be used for development purposes during prototyping.
Anthony