Posted By: George Moschovitis
Date: 2005-03-18 13:59
Summary: Nitro + Og 0.13.0
Project: Nitro
== Version 0.13.0 was released on 07/03/2005.
A snapshot of the latest code. The Nitro project is now split in three gems (nitro, og, glue) and the code is better separated. Many changes were made to make programming with Nitro more similar to Rails, to make the platform more accessible to newcomers. A conversion of ActionMailer and an AJAX example are also included.
* Introduced Mailer subsystem:
class MyMailer < Mailer
def registration_email(to, username, password)
@from = 'system@navel.gr'
@to = to
@subject = 'Registration information'
@body.username = username
@body.password = password
end
end
the tempate (registration_email.xhtml):
Hello #{username}
Thanks for registering, your password is '#{password}'
Then use it like this:
MyMailer.deliver_registration_email('gmosx@navel.gr', 'gmosx', 'rulez')
For more information, check out the updated blog example.
* AJAX example, demonstrates how to use ajax techniques with Nitro. A simple Google Suggest style UI is implemented.
* Use a Rails compatible directory structure. Check out the updated blog example. Please note that Nitro does not force a directory structure (see an alternative structure in the no_xsl_blog example).
* Optional separate template_root/public_root for extra security.
* Further code cleanup and bug fixes.
|
|