Sha256: 6f7c16735b4ac196fba64e4ab623ef973ba6f0f7de164c19900bd70adf8b0584

Contents?: true

Size: 1.96 KB

Versions: 1

Compression:

Stored size: 1.96 KB

Contents

layout_yullio generates the layout template using Yahoo! UI Library
(YUI) Grids CSS and Mollio CSS/HTML templates.

Although Mollio itself has preset layouts, YUI's Grids are more flexible
and provide a larger number of possible layouts.

This generator places a copy of YUI Grids (actually, "rest-fonts-grids"
build') and Mollio into your Rails app. It also places a 'yullio' plugin
under your plugins/ library.

For the generator to work, simply supply the name of the controller 
for which you want to generate the layout. An optional parameter specifies
the name of the partial (called "the Secondary Block" in Yahoo! terms).
By default, it will be called "secondary", and the corresponding partial,
_secondary.rhtml, will be generated and placed under your 
app/views/controller_name/ directory.

To list all available YUI layouts and their designs is beyond the scope
of this usage description. But there are three major "overall page width"
types: #doc, #doc2, and #doc3, and seven secondary column layouts,
from .yui-t1 to .yui-t7. By default, the generator will set to #doc3
(100% fluid) and .yui-t1 (two columns, narrow on left, 160 px).

To change the layout, simply put these two lines in your controller:

	class MyController < ApplicationController
		...
		yullio_page_width :doc
		yullio_column_template :yui_t2
		...
		
This sets the layout to use #doc page width and .yui-t2 column template.
Note here the dash ("-") is replaced with an underline ("_"), since Ruby
doesn't allow dash for symbols.

Note that no code for the nesting grids is generated for you. You must
place them by yourself in your views. They're beyond the scope of the
layout.

For more information on Mollio CSS/HTML templates, please refer to 
http://www.mollio.org/ .

For YUI Grids, please refer to http://developer.yahoo.com/yui/grids/

Yullio Layout Generator is prepared by hlb (Hsueh Liang-bin, a member
of WaSP ILG) and lukhnos (author of ObjectiveFlickr). This generator
is released under the BSD License.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
layout_yullio_generator-0.9.0 USAGE