Rhodes supports a layout mechanism based on ERB templates. The default layout template is called layout.erb
and is located in the application root folder. Unless overridden, this layout is rendered on all non-Ajax requests. You may use layout.erb
to load CSS and favorite JavaScript frameworks and libraries. Generated layout.erb
loads Rhomobile CSS framework and modified JQTouch library. JQTouch is loaded by default; in case you want to use other frameworks like JQMobile it can be replaced.
If we open layout.erb
it looks like this:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Test</title> <meta name="viewport" content="width=device-width; height=device-height; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"/> <% is_bb6 = System::get_property('platform') == 'Blackberry...