Page 262 -
P. 262
interface view
View your interface
With your model code written and working, it’s time to look at your view code,
which creates your webapp’s user interface (UI).
On the Web, UIs are created with HTML, the Web’s markup technology. If
you are new to HTML, it is worth taking some time to become familiar with
this critical web development technology. There’s lots of material on the Web
and more than a few good books out there.
[Note from Marketing:
This is the book that we
recommend for quickly
getting up to speed with
HTML…not that we’re
biased or anything. § ].
(Most of) the Head First
Code Review T eam
Hey, we hear you are getting into
web development? We have a small
module that we put together that might help
you generate HTML. It’s a little rough, but it
works. You’re more than welcome to use it for
your projects, if you like.
YATE: Yet Another Template Engine
Your friends over at the Head First Code Review Team heard you’re planning
to write some code to generate HTML for your webapp’s UI. They’ve sent
over some code that they swear will make your life easier. It’s a small library
of HTML-generating helper functions called yate. The code was produced
quickly and was originally designed to be “throw away,” so the team has
provided it as is. It’s somewhat raw, but it should be OK.
226 Chapter 7