Lukhnos D. Liu
2007-Jan-27 14:26 UTC
A layout generator that combines YUI Grids with Mollio templates
We have created a Rails generator that churns out good-looking layouts (it''s Mollio :) for your controllers: http://rubyforge.org/projects/layout-yullio/ Yullio Layout Generator (gem: layout_yullio_generator) is a layout generator that combines the flexibility of YUI Grids [1] with Mollio CSS/HTML templates [2]. Simply generate the layout with: script/generate layout_yullio <controller name here> [optional partial] And it places a copy of YUI Grids and Mollio CSS files in your public/ directory, instantly giving your views a great look. This generator is a continuation of Mollio Layout Generator [3]. Here we combine Mollio''s good theme design with YUI Grids'' flexibility. It''s very easy to change the layout of your views. Just add the following lines in your controller: class MyController < ApplicationController yullio_page_width :doc2 yullio_column_template :yui_t2 Here yullio_page_width is followed by YUI Grids page width styles, currently :doc, :doc2 and :doc3 are supported. Column templates follow the same naming rules. YUI calls them yui-t1 to -t7, here we replace the dash with the underline for obvious reasons. The two methods are implemented as a plug-in, which is of course copied for you by the generator. :) Simply type "script/generator layout_yullio" for usage and description. We hope this generator will help you save time in creating layouts, further speeding up the prototyping stage of Rails app development. The combined "yullio" templates are prepared by Liang-bin Hsueh. Cheers, d. related links: [1] YUI Grids, http://developer.yahoo.com/yui/grids/ [2] Mollio, http://www.mollio.org/ [3] layout_mollio_generator (gem), http://rubyforge.org/projects/ layout-mollio-g/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---