Prev | Current Page 454 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"

The process of retrieving and processing contents to be assembled in a visual output is
described as generating dynamic contents.
Having the contents stored in a database provides many and useful ways to access the data. It is possible
to query the database to return just a subset of the available contents; a homepage for example can
visualize just the last ten posted news. The contents from miscellaneous sources can be mixed to provide
Chapter 9: Building Websites with HaXe
235
richer pages, an author page in a bookstore site can show both his biography and his books; when a new
book is added to the repository the author page is automatically updated.
The process of mixing content and layout varies a lot usually recurring on a template engine, argument
of the next chapter, or simply by producing the desired HTML programmatically.
Now that all the tools of the trade have been exposed, it is possible to create a real website. There are
different approaches to building dynamic websites: You can have as many logical units as many pages
there are in the website or have just one logical unit that manages every possible request for dynamic
contents.


Pages:
442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466